Struct aws_sdk_workdocs::types::DocumentMetadata
source · #[non_exhaustive]pub struct DocumentMetadata {
pub id: Option<String>,
pub creator_id: Option<String>,
pub parent_folder_id: Option<String>,
pub created_timestamp: Option<DateTime>,
pub modified_timestamp: Option<DateTime>,
pub latest_version_metadata: Option<DocumentVersionMetadata>,
pub resource_state: Option<ResourceStateType>,
pub labels: Option<Vec<String>>,
}
Expand description
Describes the document.
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.id: Option<String>
The ID of the document.
creator_id: Option<String>
The ID of the creator.
parent_folder_id: Option<String>
The ID of the parent folder.
created_timestamp: Option<DateTime>
The time when the document was created.
modified_timestamp: Option<DateTime>
The time when the document was updated.
latest_version_metadata: Option<DocumentVersionMetadata>
The latest version of the document.
resource_state: Option<ResourceStateType>
The resource state.
labels: Option<Vec<String>>
List of labels on the document.
Implementations§
source§impl DocumentMetadata
impl DocumentMetadata
sourcepub fn creator_id(&self) -> Option<&str>
pub fn creator_id(&self) -> Option<&str>
The ID of the creator.
sourcepub fn parent_folder_id(&self) -> Option<&str>
pub fn parent_folder_id(&self) -> Option<&str>
The ID of the parent folder.
sourcepub fn created_timestamp(&self) -> Option<&DateTime>
pub fn created_timestamp(&self) -> Option<&DateTime>
The time when the document was created.
sourcepub fn modified_timestamp(&self) -> Option<&DateTime>
pub fn modified_timestamp(&self) -> Option<&DateTime>
The time when the document was updated.
sourcepub fn latest_version_metadata(&self) -> Option<&DocumentVersionMetadata>
pub fn latest_version_metadata(&self) -> Option<&DocumentVersionMetadata>
The latest version of the document.
sourcepub fn resource_state(&self) -> Option<&ResourceStateType>
pub fn resource_state(&self) -> Option<&ResourceStateType>
The resource state.
source§impl DocumentMetadata
impl DocumentMetadata
sourcepub fn builder() -> DocumentMetadataBuilder
pub fn builder() -> DocumentMetadataBuilder
Creates a new builder-style object to manufacture DocumentMetadata
.
Trait Implementations§
source§impl Clone for DocumentMetadata
impl Clone for DocumentMetadata
source§fn clone(&self) -> DocumentMetadata
fn clone(&self) -> DocumentMetadata
Returns a copy 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 Debug for DocumentMetadata
impl Debug for DocumentMetadata
source§impl PartialEq for DocumentMetadata
impl PartialEq for DocumentMetadata
source§fn eq(&self, other: &DocumentMetadata) -> bool
fn eq(&self, other: &DocumentMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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 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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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 moreCreates a shared type from an unshared type.