pub struct ApprovalThresholdConfig {
pub amount: f64,
pub level: u8,
pub roles: Vec<String>,
}Expand description
Configuration for a single approval threshold.
Fields§
§amount: f64Amount threshold
level: u8Approval level required
roles: Vec<String>Roles that can approve at this level
Trait Implementations§
Source§impl Clone for ApprovalThresholdConfig
impl Clone for ApprovalThresholdConfig
Source§fn clone(&self) -> ApprovalThresholdConfig
fn clone(&self) -> ApprovalThresholdConfig
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 ApprovalThresholdConfig
impl Debug for ApprovalThresholdConfig
Source§impl<'de> Deserialize<'de> for ApprovalThresholdConfig
impl<'de> Deserialize<'de> for ApprovalThresholdConfig
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 ApprovalThresholdConfig
impl RefUnwindSafe for ApprovalThresholdConfig
impl Send for ApprovalThresholdConfig
impl Sync for ApprovalThresholdConfig
impl Unpin for ApprovalThresholdConfig
impl UnwindSafe for ApprovalThresholdConfig
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