pub struct DocumentMetadata { /* private fields */ }Expand description
Vendor-neutral metadata for a modeled document.
Implementations§
Source§impl DocumentMetadata
impl DocumentMetadata
Sourcepub fn with_collection(self, collection: CollectionName) -> Self
pub fn with_collection(self, collection: CollectionName) -> Self
Sets the collection name.
Sourcepub const fn with_revision(self, revision: DocumentRevision) -> Self
pub const fn with_revision(self, revision: DocumentRevision) -> Self
Sets the document revision.
Sourcepub const fn with_version(self, version: DocumentVersion) -> Self
pub const fn with_version(self, version: DocumentVersion) -> Self
Sets the document version.
Sourcepub const fn collection(&self) -> Option<&CollectionName>
pub const fn collection(&self) -> Option<&CollectionName>
Returns the collection name, if present.
Sourcepub const fn revision(&self) -> Option<DocumentRevision>
pub const fn revision(&self) -> Option<DocumentRevision>
Returns the revision, if present.
Sourcepub const fn version(&self) -> Option<DocumentVersion>
pub const fn version(&self) -> Option<DocumentVersion>
Returns the version, if present.
Trait Implementations§
Source§impl Clone for DocumentMetadata
impl Clone for DocumentMetadata
Source§fn clone(&self) -> DocumentMetadata
fn clone(&self) -> DocumentMetadata
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 moreSource§impl Debug for DocumentMetadata
impl Debug for DocumentMetadata
Source§impl Default for DocumentMetadata
impl Default for DocumentMetadata
Source§fn default() -> DocumentMetadata
fn default() -> DocumentMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for DocumentMetadata
impl PartialEq for DocumentMetadata
Source§fn eq(&self, other: &DocumentMetadata) -> bool
fn eq(&self, other: &DocumentMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DocumentMetadata
impl StructuralPartialEq for DocumentMetadata
Auto Trait Implementations§
impl Freeze for DocumentMetadata
impl RefUnwindSafe for DocumentMetadata
impl Send for DocumentMetadata
impl Sync for DocumentMetadata
impl Unpin for DocumentMetadata
impl UnsafeUnpin for DocumentMetadata
impl UnwindSafe for DocumentMetadata
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