pub struct ApprovalScope {
pub max_actions: Option<u32>,
pub valid_until: Option<String>,
pub allowed_actions: Vec<String>,
pub extra: Option<Value>,
}Expand description
Scope constraints on an approval — what it permits and for how long.
Fields§
§max_actions: Option<u32>Maximum number of actions this approval authorises.
valid_until: Option<String>ISO 8601 timestamp after which the approval is no longer valid.
allowed_actions: Vec<String>If set, only these action labels are permitted.
extra: Option<Value>Arbitrary additional constraints (e.g. max payment amount).
Trait Implementations§
Source§impl Clone for ApprovalScope
impl Clone for ApprovalScope
Source§fn clone(&self) -> ApprovalScope
fn clone(&self) -> ApprovalScope
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 ApprovalScope
impl Debug for ApprovalScope
Source§impl Default for ApprovalScope
impl Default for ApprovalScope
Source§fn default() -> ApprovalScope
fn default() -> ApprovalScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApprovalScope
impl<'de> Deserialize<'de> for ApprovalScope
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 ApprovalScope
impl RefUnwindSafe for ApprovalScope
impl Send for ApprovalScope
impl Sync for ApprovalScope
impl Unpin for ApprovalScope
impl UnsafeUnpin for ApprovalScope
impl UnwindSafe for ApprovalScope
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