Struct aws_sdk_workdocs::model::Activity
source · [−]#[non_exhaustive]pub struct Activity {
pub type: Option<ActivityType>,
pub time_stamp: Option<DateTime>,
pub is_indirect_activity: bool,
pub organization_id: Option<String>,
pub initiator: Option<UserMetadata>,
pub participants: Option<Participants>,
pub resource_metadata: Option<ResourceMetadata>,
pub original_parent: Option<ResourceMetadata>,
pub comment_metadata: Option<CommentMetadata>,
}
Expand description
Describes the activity information.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type: Option<ActivityType>
The activity type.
time_stamp: Option<DateTime>
The timestamp when the action was performed.
is_indirect_activity: bool
Indicates whether an activity is indirect or direct. An indirect activity results from a direct activity performed on a parent resource. For example, sharing a parent folder (the direct activity) shares all of the subfolders and documents within the parent folder (the indirect activity).
organization_id: Option<String>
The ID of the organization.
initiator: Option<UserMetadata>
The user who performed the action.
participants: Option<Participants>
The list of users or groups impacted by this action. This is an optional field and is filled for the following sharing activities: DOCUMENT_SHARED, DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.
resource_metadata: Option<ResourceMetadata>
The metadata of the resource involved in the user action.
original_parent: Option<ResourceMetadata>
The original parent of the resource. This is an optional field and is filled for move activities.
comment_metadata: Option<CommentMetadata>
Metadata of the commenting activity. This is an optional field and is filled for commenting activities.
Implementations
sourceimpl Activity
impl Activity
sourcepub fn type(&self) -> Option<&ActivityType>
pub fn type(&self) -> Option<&ActivityType>
The activity type.
sourcepub fn time_stamp(&self) -> Option<&DateTime>
pub fn time_stamp(&self) -> Option<&DateTime>
The timestamp when the action was performed.
sourcepub fn is_indirect_activity(&self) -> bool
pub fn is_indirect_activity(&self) -> bool
Indicates whether an activity is indirect or direct. An indirect activity results from a direct activity performed on a parent resource. For example, sharing a parent folder (the direct activity) shares all of the subfolders and documents within the parent folder (the indirect activity).
sourcepub fn organization_id(&self) -> Option<&str>
pub fn organization_id(&self) -> Option<&str>
The ID of the organization.
sourcepub fn initiator(&self) -> Option<&UserMetadata>
pub fn initiator(&self) -> Option<&UserMetadata>
The user who performed the action.
sourcepub fn participants(&self) -> Option<&Participants>
pub fn participants(&self) -> Option<&Participants>
The list of users or groups impacted by this action. This is an optional field and is filled for the following sharing activities: DOCUMENT_SHARED, DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.
sourcepub fn resource_metadata(&self) -> Option<&ResourceMetadata>
pub fn resource_metadata(&self) -> Option<&ResourceMetadata>
The metadata of the resource involved in the user action.
sourcepub fn original_parent(&self) -> Option<&ResourceMetadata>
pub fn original_parent(&self) -> Option<&ResourceMetadata>
The original parent of the resource. This is an optional field and is filled for move activities.
sourcepub fn comment_metadata(&self) -> Option<&CommentMetadata>
pub fn comment_metadata(&self) -> Option<&CommentMetadata>
Metadata of the commenting activity. This is an optional field and is filled for commenting activities.
Trait Implementations
impl StructuralPartialEq for Activity
Auto Trait Implementations
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnwindSafe for Activity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more