pub struct DelegationContext {
pub origin: Origin,
pub chain: Vec<String>,
pub deadline: Timestamp,
pub budget: Budget,
pub trace: String,
}Expand description
Who a delegation is for, where it started and how much it may still spend. It travels with every request of a chain and is signed with it.
Fields§
§origin: OriginWhere the work started.
chain: Vec<String>Team members the work passed through, the first bot first.
deadline: TimestampThe work must be done by then; only shrinks along the chain.
budget: BudgetAgent turns the rest of the chain may still use.
trace: StringAn id shared by every bot’s records of this work.
Trait Implementations§
Source§impl Clone for DelegationContext
impl Clone for DelegationContext
Source§impl Debug for DelegationContext
impl Debug for DelegationContext
Source§impl<'de> Deserialize<'de> for DelegationContext
impl<'de> Deserialize<'de> for DelegationContext
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 DelegationContext
Source§impl PartialEq for DelegationContext
impl PartialEq for DelegationContext
Source§impl Serialize for DelegationContext
impl Serialize for DelegationContext
impl StructuralPartialEq for DelegationContext
Auto Trait Implementations§
impl Freeze for DelegationContext
impl RefUnwindSafe for DelegationContext
impl Send for DelegationContext
impl Sync for DelegationContext
impl Unpin for DelegationContext
impl UnsafeUnpin for DelegationContext
impl UnwindSafe for DelegationContext
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