pub struct BiofieldRecord {
pub position_m: [f64; 3],
pub current_dipole_moment_a_m: [f64; 3],
pub extracellular_potential_v: Option<f64>,
pub tick: i64,
pub carrier_hz: Option<f64>,
pub uncertainty: Option<f64>,
pub anatomy_metadata_ref: u32,
pub model_ref: u32,
pub calibration_ref: u32,
pub consent_provenance_ref: u32,
pub flags: u32,
}Fields§
§position_m: [f64; 3]§current_dipole_moment_a_m: [f64; 3]§extracellular_potential_v: Option<f64>§tick: i64§carrier_hz: Option<f64>§uncertainty: Option<f64>§anatomy_metadata_ref: u32§model_ref: u32§calibration_ref: u32§consent_provenance_ref: u32§flags: u32Implementations§
Source§impl BiofieldRecord
impl BiofieldRecord
pub fn parse(bytes: &[u8], valid: bool) -> Result<Option<Self>, Error>
pub fn encode(&self, valid: bool, out: &mut [u8; 128]) -> Result<(), Error>
pub fn validate_against_blocks( &self, anatomy: Block<'_>, model: Block<'_>, cal: Block<'_>, consent_prov: Block<'_>, require_consent_receipt: bool, ) -> Result<EpistemicClass, Error>
Trait Implementations§
Source§impl Clone for BiofieldRecord
impl Clone for BiofieldRecord
impl Copy for BiofieldRecord
Source§impl Debug for BiofieldRecord
impl Debug for BiofieldRecord
Source§impl PartialEq for BiofieldRecord
impl PartialEq for BiofieldRecord
impl StructuralPartialEq for BiofieldRecord
Auto Trait Implementations§
impl Freeze for BiofieldRecord
impl RefUnwindSafe for BiofieldRecord
impl Send for BiofieldRecord
impl Sync for BiofieldRecord
impl Unpin for BiofieldRecord
impl UnsafeUnpin for BiofieldRecord
impl UnwindSafe for BiofieldRecord
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more