pub struct PolicyEnvelope {
pub capabilities: Vec<String>,
pub visibilities: Vec<String>,
}Fields§
§capabilities: Vec<String>§visibilities: Vec<String>Implementations§
Source§impl PolicyEnvelope
impl PolicyEnvelope
pub fn is_public(&self) -> bool
pub fn normalized(self) -> Self
pub fn union_with(&mut self, other: &Self)
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§fn default() -> PolicyEnvelope
fn default() -> PolicyEnvelope
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for PolicyEnvelope
impl PartialEq for PolicyEnvelope
Source§impl Serialize for PolicyEnvelope
impl Serialize for PolicyEnvelope
impl Eq for PolicyEnvelope
impl StructuralPartialEq for PolicyEnvelope
Auto Trait Implementations§
impl Freeze for PolicyEnvelope
impl RefUnwindSafe for PolicyEnvelope
impl Send for PolicyEnvelope
impl Sync for PolicyEnvelope
impl Unpin 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