#[non_exhaustive]pub enum CostModel {
Free,
Billed {
unit: &'static str,
},
}Expand description
What an action costs, so an operator sees the bill of an operation they asked for before asking.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Free
Nothing an operator pays for.
Billed
Billed, in the unit named: a satellite session, a message.
Trait Implementations§
impl Copy for CostModel
impl Eq for CostModel
impl StructuralPartialEq for CostModel
Auto Trait Implementations§
impl Freeze for CostModel
impl RefUnwindSafe for CostModel
impl Send for CostModel
impl Sync for CostModel
impl Unpin for CostModel
impl UnsafeUnpin for CostModel
impl UnwindSafe for CostModel
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