pub struct ActionDisposition {
pub action_id: String,
pub action_kind: Option<String>,
pub signal_ts: Option<NaiveDateTime>,
pub effective_ts: Option<NaiveDateTime>,
pub status: ActionDispositionStatus,
pub reason: Option<String>,
pub position_ids: Vec<String>,
}Expand description
Exactly one terminal accounting record for one runner action.
Fields§
§action_id: String§action_kind: Option<String>Stable caller-defined action category (for example, open or close).
signal_ts: Option<NaiveDateTime>§effective_ts: Option<NaiveDateTime>§status: ActionDispositionStatus§reason: Option<String>Machine-stable or human-readable reason. Usually absent for Applied.
position_ids: Vec<String>Position ids affected by bulk actions are retained in deterministic order.
Implementations§
Source§impl ActionDisposition
impl ActionDisposition
pub fn new( action_id: impl Into<String>, status: ActionDispositionStatus, ) -> Self
pub fn applied(action_id: impl Into<String>) -> Self
pub fn skipped(action_id: impl Into<String>, reason: impl Into<String>) -> Self
pub fn rejected(action_id: impl Into<String>, reason: impl Into<String>) -> Self
pub fn failed(action_id: impl Into<String>, reason: impl Into<String>) -> Self
Sourcepub const fn is_terminal(&self) -> bool
pub const fn is_terminal(&self) -> bool
All statuses represented by this type are terminal by construction.
Trait Implementations§
Source§impl Clone for ActionDisposition
impl Clone for ActionDisposition
Source§impl Debug for ActionDisposition
impl Debug for ActionDisposition
Source§impl Default for ActionDisposition
impl Default for ActionDisposition
Source§impl<'de> Deserialize<'de> for ActionDispositionwhere
ActionDisposition: Default,
impl<'de> Deserialize<'de> for ActionDispositionwhere
ActionDisposition: Default,
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 Eq for ActionDisposition
Source§impl PartialEq for ActionDisposition
impl PartialEq for ActionDisposition
Source§impl Serialize for ActionDisposition
impl Serialize for ActionDisposition
impl StructuralPartialEq for ActionDisposition
Auto Trait Implementations§
impl Freeze for ActionDisposition
impl RefUnwindSafe for ActionDisposition
impl Send for ActionDisposition
impl Sync for ActionDisposition
impl Unpin for ActionDisposition
impl UnsafeUnpin for ActionDisposition
impl UnwindSafe for ActionDisposition
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.