pub struct Action {
pub actor: Option<Actor>,
pub detail: Option<ActionDetail>,
pub target: Option<Target>,
pub time_range: Option<TimeRange>,
pub timestamp: Option<DateTime<Utc>>,
}Expand description
Information about the action.
This type is not used in any activity, and only used as part of another schema.
Fields§
§actor: Option<Actor>The actor responsible for this action (or empty if all actors are responsible).
detail: Option<ActionDetail>The type and detailed information about the action.
target: Option<Target>The target this action affects (or empty if affecting all targets). This represents the state of the target immediately after this action occurred.
time_range: Option<TimeRange>The action occurred over this time range.
timestamp: Option<DateTime<Utc>>The action occurred at this specific time.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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