#[non_exhaustive]pub struct DatasetInfo {
pub name: String,
pub item_count: u64,
pub created_at: OffsetDateTime,
pub modified_at: OffsetDateTime,
}Expand description
Dataset identity and timestamps.
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.name: StringDataset name.
item_count: u64Number of stored items.
created_at: OffsetDateTimeCreation timestamp.
modified_at: OffsetDateTimeMost recent modification timestamp.
Implementations§
Source§impl DatasetInfo
impl DatasetInfo
Sourcepub fn new(
name: String,
item_count: u64,
created_at: OffsetDateTime,
modified_at: OffsetDateTime,
) -> Self
pub fn new( name: String, item_count: u64, created_at: OffsetDateTime, modified_at: OffsetDateTime, ) -> Self
Creates dataset metadata for a storage backend.
Trait Implementations§
Source§impl Clone for DatasetInfo
impl Clone for DatasetInfo
Source§fn clone(&self) -> DatasetInfo
fn clone(&self) -> DatasetInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DatasetInfo
impl RefUnwindSafe for DatasetInfo
impl Send for DatasetInfo
impl Sync for DatasetInfo
impl Unpin for DatasetInfo
impl UnsafeUnpin for DatasetInfo
impl UnwindSafe for DatasetInfo
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