pub struct PolicyEnvelope {
pub failure_policy: FailurePolicy,
pub budget: Option<BudgetPolicy>,
pub safety_constraints: Vec<String>,
pub max_delegation_depth: Option<u32>,
}Fields§
§failure_policy: FailurePolicy§budget: Option<BudgetPolicy>§safety_constraints: Vec<String>§max_delegation_depth: Option<u32>Trait Implementations§
Source§impl Clone for PolicyEnvelope
impl Clone for PolicyEnvelope
Source§fn clone(&self) -> PolicyEnvelope
fn clone(&self) -> PolicyEnvelope
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 PolicyEnvelope
impl Debug for PolicyEnvelope
Source§impl Default for PolicyEnvelope
impl Default for PolicyEnvelope
Source§impl<'de> Deserialize<'de> for PolicyEnvelope
impl<'de> Deserialize<'de> for PolicyEnvelope
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 PolicyEnvelope
impl RefUnwindSafe for PolicyEnvelope
impl Send for PolicyEnvelope
impl Sync for PolicyEnvelope
impl Unpin for PolicyEnvelope
impl UnsafeUnpin for PolicyEnvelope
impl UnwindSafe for PolicyEnvelope
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