pub struct SimpleAction {
pub action_id: String,
pub agent_id: String,
pub proposed_at: DateTime<Utc>,
pub state_deltas: Vec<StateDelta>,
pub priority: ActionPriority,
}Expand description
Simple concrete implementation of ProposedAction for testing and basic use.
Fields§
§action_id: String§agent_id: String§proposed_at: DateTime<Utc>§state_deltas: Vec<StateDelta>§priority: ActionPriorityTrait Implementations§
Source§impl Clone for SimpleAction
impl Clone for SimpleAction
Source§fn clone(&self) -> SimpleAction
fn clone(&self) -> SimpleAction
Returns a duplicate 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 SimpleAction
impl Debug for SimpleAction
Source§impl<'de> Deserialize<'de> for SimpleAction
impl<'de> Deserialize<'de> for SimpleAction
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
Source§impl ProposedAction for SimpleAction
impl ProposedAction for SimpleAction
Source§fn proposed_at(&self) -> DateTime<Utc>
fn proposed_at(&self) -> DateTime<Utc>
When the action was proposed.
Source§fn state_deltas(&self) -> &[StateDelta]
fn state_deltas(&self) -> &[StateDelta]
State deltas this action would cause.
Source§fn priority(&self) -> ActionPriority
fn priority(&self) -> ActionPriority
Priority level.
Auto Trait Implementations§
impl Freeze for SimpleAction
impl RefUnwindSafe for SimpleAction
impl Send for SimpleAction
impl Sync for SimpleAction
impl Unpin for SimpleAction
impl UnsafeUnpin for SimpleAction
impl UnwindSafe for SimpleAction
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