#[non_exhaustive]pub struct ActionOutcome {
pub detail: String,
pub cost: BTreeMap<String, i64>,
}Expand description
What an action did, and what it cost (#129): the reply, and the record.
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.detail: StringOne line in the device’s words.
cost: BTreeMap<String, i64>What it cost, by unit: {"sessions": 1, "messages_received": 2}.
Implementations§
Trait Implementations§
Source§impl Clone for ActionOutcome
impl Clone for ActionOutcome
Source§impl Debug for ActionOutcome
impl Debug for ActionOutcome
Source§impl Default for ActionOutcome
impl Default for ActionOutcome
impl Eq for ActionOutcome
Source§impl PartialEq for ActionOutcome
impl PartialEq for ActionOutcome
impl StructuralPartialEq for ActionOutcome
Auto Trait Implementations§
impl Freeze for ActionOutcome
impl RefUnwindSafe for ActionOutcome
impl Send for ActionOutcome
impl Sync for ActionOutcome
impl Unpin for ActionOutcome
impl UnsafeUnpin for ActionOutcome
impl UnwindSafe for ActionOutcome
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