pub struct BudgetConsumeCommand { /* private fields */ }Expand description
Semantic command for budget consumption mutation.
Implementations§
Source§impl BudgetConsumeCommand
impl BudgetConsumeCommand
Sourcepub fn new(
sequence: u64,
task_id: TaskId,
dimension: BudgetDimension,
amount: u64,
timestamp: u64,
) -> Self
pub fn new( sequence: u64, task_id: TaskId, dimension: BudgetDimension, amount: u64, timestamp: u64, ) -> Self
Creates a new budget-consume command.
Sourcepub fn dimension(&self) -> BudgetDimension
pub fn dimension(&self) -> BudgetDimension
Returns the budget dimension.
Trait Implementations§
Source§impl Clone for BudgetConsumeCommand
impl Clone for BudgetConsumeCommand
Source§fn clone(&self) -> BudgetConsumeCommand
fn clone(&self) -> BudgetConsumeCommand
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 BudgetConsumeCommand
impl Debug for BudgetConsumeCommand
Source§impl PartialEq for BudgetConsumeCommand
impl PartialEq for BudgetConsumeCommand
impl Copy for BudgetConsumeCommand
impl Eq for BudgetConsumeCommand
impl StructuralPartialEq for BudgetConsumeCommand
Auto Trait Implementations§
impl Freeze for BudgetConsumeCommand
impl RefUnwindSafe for BudgetConsumeCommand
impl Send for BudgetConsumeCommand
impl Sync for BudgetConsumeCommand
impl Unpin for BudgetConsumeCommand
impl UnsafeUnpin for BudgetConsumeCommand
impl UnwindSafe for BudgetConsumeCommand
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