pub struct Authority {
pub principal: Principal,
pub scope: AuthScope,
pub granted_at: DateTime<Utc>,
pub expires: Option<DateTime<Utc>>,
pub delegation_chain: Vec<DelegationLink>,
}Expand description
Who authorized a state change, with the full delegation chain.
Fields§
§principal: PrincipalThe principal who authorized this action.
scope: AuthScopeWhat was authorized.
granted_at: DateTime<Utc>When the authorization was granted.
expires: Option<DateTime<Utc>>When the authorization expires (None = no expiration).
delegation_chain: Vec<DelegationLink>Full authorization path from root policy to executing agent.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Authority
impl<'de> Deserialize<'de> for Authority
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 StructuralPartialEq for Authority
Auto Trait Implementations§
impl Freeze for Authority
impl RefUnwindSafe for Authority
impl Send for Authority
impl Sync for Authority
impl Unpin for Authority
impl UnsafeUnpin for Authority
impl UnwindSafe for Authority
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