pub struct ActorClaim {
pub sub: String,
pub act: Option<Box<ActorClaim>>,
}Expand description
RFC 8693 §4.1 actor claim: identifies the party that is acting on behalf
of the subject. In a delegation chain, sub stays the human principal
and act holds the agent identity. Nested act claims represent
multi-hop delegation (agent A delegates to agent B: A is in act, B is
in act.act).
Fields§
§sub: StringThe acting party’s identifier (e.g. agent:billing-support).
act: Option<Box<ActorClaim>>Nested actor for multi-hop delegation. Bounded by
IdentityValidator::max_chain_depth at validation time.
Implementations§
Trait Implementations§
Source§impl Clone for ActorClaim
impl Clone for ActorClaim
Source§fn clone(&self) -> ActorClaim
fn clone(&self) -> ActorClaim
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 ActorClaim
impl Debug for ActorClaim
Source§impl<'de> Deserialize<'de> for ActorClaim
impl<'de> Deserialize<'de> for ActorClaim
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 ActorClaim
impl PartialEq for ActorClaim
Source§fn eq(&self, other: &ActorClaim) -> bool
fn eq(&self, other: &ActorClaim) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActorClaim
impl Serialize for ActorClaim
impl Eq for ActorClaim
impl StructuralPartialEq for ActorClaim
Auto Trait Implementations§
impl Freeze for ActorClaim
impl RefUnwindSafe for ActorClaim
impl Send for ActorClaim
impl Sync for ActorClaim
impl Unpin for ActorClaim
impl UnsafeUnpin for ActorClaim
impl UnwindSafe for ActorClaim
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.