#[non_exhaustive]pub struct ExportRecord<E> {
pub timestamp: u64,
pub export: E,
pub notes: Option<String>,
}Expand description
Record of an exported result.
Each call to CalibrationSession::export
creates an export record that is stored in the session’s exports collection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.timestamp: u64Unix timestamp when the export was created (seconds since epoch).
export: EThe exported data.
notes: Option<String>Optional user-provided notes about this export.
Implementations§
Source§impl<E> ExportRecord<E>
impl<E> ExportRecord<E>
Sourcepub fn new(export: E) -> ExportRecord<E>
pub fn new(export: E) -> ExportRecord<E>
Create an export record.
Sourcepub fn with_notes(export: E, notes: impl Into<String>) -> ExportRecord<E>
pub fn with_notes(export: E, notes: impl Into<String>) -> ExportRecord<E>
Create an export record with notes.
Trait Implementations§
Source§impl<E> Clone for ExportRecord<E>where
E: Clone,
impl<E> Clone for ExportRecord<E>where
E: Clone,
Source§fn clone(&self) -> ExportRecord<E>
fn clone(&self) -> ExportRecord<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E> Debug for ExportRecord<E>where
E: Debug,
impl<E> Debug for ExportRecord<E>where
E: Debug,
Source§impl<'de, E> Deserialize<'de> for ExportRecord<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for ExportRecord<E>where
E: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExportRecord<E>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExportRecord<E>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<E> Serialize for ExportRecord<E>where
E: Serialize,
impl<E> Serialize for ExportRecord<E>where
E: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<E> Freeze for ExportRecord<E>where
E: Freeze,
impl<E> RefUnwindSafe for ExportRecord<E>where
E: RefUnwindSafe,
impl<E> Send for ExportRecord<E>where
E: Send,
impl<E> Sync for ExportRecord<E>where
E: Sync,
impl<E> Unpin for ExportRecord<E>where
E: Unpin,
impl<E> UnsafeUnpin for ExportRecord<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for ExportRecord<E>where
E: UnwindSafe,
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.