pub struct DimensionTag(/* private fields */);Expand description
The trust dimension tags used in co-signature blocks.
Implementations§
Source§impl DimensionTag
impl DimensionTag
Sourcepub const PERSON: &'static str = "person"
pub const PERSON: &'static str = "person"
The person dimension — a human witnessed or authorized.
Sourcepub const LOCATION: &'static str = "location"
pub const LOCATION: &'static str = "location"
The location dimension — occurrence at coordinates.
Sourcepub const ENVIRONMENT: &'static str = "environment"
pub const ENVIRONMENT: &'static str = "environment"
The environment dimension — ambient conditions in bounds.
Sourcepub const AUTHORIZATION: &'static str = "authorization"
pub const AUTHORIZATION: &'static str = "authorization"
The authorization dimension — action permitted by policy.
Sourcepub const IDENTITY: &'static str = "identity"
pub const IDENTITY: &'static str = "identity"
The identity dimension — device or person is genuine.
Sourcepub const ORACLE: &'static str = "oracle"
pub const ORACLE: &'static str = "oracle"
The oracle dimension — external data had a stated value.
Sourcepub fn environment() -> Self
pub fn environment() -> Self
The environment dimension — ambient conditions in bounds.
The authorization dimension — action permitted by policy.
Trait Implementations§
Source§impl Clone for DimensionTag
impl Clone for DimensionTag
Source§fn clone(&self) -> DimensionTag
fn clone(&self) -> DimensionTag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DimensionTag
impl Debug for DimensionTag
Source§impl<'de> Deserialize<'de> for DimensionTag
impl<'de> Deserialize<'de> for DimensionTag
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
impl Eq for DimensionTag
Source§impl Ord for DimensionTag
impl Ord for DimensionTag
Source§fn cmp(&self, other: &DimensionTag) -> Ordering
fn cmp(&self, other: &DimensionTag) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DimensionTag
impl PartialEq for DimensionTag
Source§fn eq(&self, other: &DimensionTag) -> bool
fn eq(&self, other: &DimensionTag) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DimensionTag
impl PartialOrd for DimensionTag
Source§impl Serialize for DimensionTag
impl Serialize for DimensionTag
impl StructuralPartialEq for DimensionTag
Auto Trait Implementations§
impl Freeze for DimensionTag
impl RefUnwindSafe for DimensionTag
impl Send for DimensionTag
impl Sync for DimensionTag
impl Unpin for DimensionTag
impl UnsafeUnpin for DimensionTag
impl UnwindSafe for DimensionTag
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