pub struct Delegation {
pub id: String,
pub from_agent_id: String,
pub to_agent_id: String,
pub org_id: Option<String>,
pub scope: Vec<String>,
pub restrictions: Option<Value>,
pub delegation_chain: Option<Vec<String>>,
pub expires_at: String,
pub revoked_at: Option<String>,
pub created_at: String,
}Expand description
A capability delegation between two agents.
Fields§
§id: StringDelegation identifier.
from_agent_id: StringGranting agent.
to_agent_id: StringReceiving agent.
org_id: Option<String>Owning organization (optional).
scope: Vec<String>Granted scope.
restrictions: Option<Value>Optional restrictions.
delegation_chain: Option<Vec<String>>Chain of delegations leading to this one.
expires_at: StringExpiration time (ISO 8601).
revoked_at: Option<String>Revocation time, if revoked (ISO 8601).
created_at: StringCreation time (ISO 8601).
Trait Implementations§
Source§impl Clone for Delegation
impl Clone for Delegation
Source§fn clone(&self) -> Delegation
fn clone(&self) -> Delegation
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 Delegation
impl Debug for Delegation
Source§impl Default for Delegation
impl Default for Delegation
Source§fn default() -> Delegation
fn default() -> Delegation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Delegation
impl<'de> Deserialize<'de> for Delegation
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 Delegation
impl RefUnwindSafe for Delegation
impl Send for Delegation
impl Sync for Delegation
impl Unpin for Delegation
impl UnsafeUnpin for Delegation
impl UnwindSafe for Delegation
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