pub enum FromType {
From(Vec<String>),
FromRole(Vec<String>),
FromAgent(Vec<String>),
}Expand description
FromType specifies who the policy applies to
Variants§
From(Vec<String>)
Specific DIDs
FromRole(Vec<String>)
Specific transaction roles
FromAgent(Vec<String>)
Specific agent types
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FromType
impl<'de> Deserialize<'de> for FromType
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 FromType
impl RefUnwindSafe for FromType
impl Send for FromType
impl Sync for FromType
impl Unpin for FromType
impl UnwindSafe for FromType
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