pub struct SpendingContext {
pub daily_total: String,
pub date: String,
}Expand description
Carried in PolicyContext for executable policies (opaque JSON). Not used by built-in rules.
Fields§
§daily_total: StringReserved for future use / custom tooling.
date: StringDate string (YYYY-MM-DD).
Trait Implementations§
Source§impl Clone for SpendingContext
impl Clone for SpendingContext
Source§fn clone(&self) -> SpendingContext
fn clone(&self) -> SpendingContext
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 SpendingContext
impl Debug for SpendingContext
Source§impl<'de> Deserialize<'de> for SpendingContext
impl<'de> Deserialize<'de> for SpendingContext
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
Auto Trait Implementations§
impl Freeze for SpendingContext
impl RefUnwindSafe for SpendingContext
impl Send for SpendingContext
impl Sync for SpendingContext
impl Unpin for SpendingContext
impl UnsafeUnpin for SpendingContext
impl UnwindSafe for SpendingContext
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