pub struct DelegateId(pub String);Expand description
Opaque identifier for a delegate session (Principal::Delegate).
For an LLM session via an MCP bridge, this is the bridge-issued
session id (e.g. llm-claude-session-456).
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for DelegateId
impl Clone for DelegateId
Source§fn clone(&self) -> DelegateId
fn clone(&self) -> DelegateId
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 DelegateId
impl Debug for DelegateId
Source§impl<'de> Deserialize<'de> for DelegateId
impl<'de> Deserialize<'de> for DelegateId
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 Display for DelegateId
impl Display for DelegateId
Source§impl From<&str> for DelegateId
impl From<&str> for DelegateId
Source§impl From<String> for DelegateId
impl From<String> for DelegateId
Source§impl Hash for DelegateId
impl Hash for DelegateId
Source§impl Ord for DelegateId
impl Ord for DelegateId
Source§fn cmp(&self, other: &DelegateId) -> Ordering
fn cmp(&self, other: &DelegateId) -> 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 DelegateId
impl PartialEq for DelegateId
Source§fn eq(&self, other: &DelegateId) -> bool
fn eq(&self, other: &DelegateId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DelegateId
impl PartialOrd for DelegateId
Source§impl Serialize for DelegateId
impl Serialize for DelegateId
impl Eq for DelegateId
impl StructuralPartialEq for DelegateId
Auto Trait Implementations§
impl Freeze for DelegateId
impl RefUnwindSafe for DelegateId
impl Send for DelegateId
impl Sync for DelegateId
impl Unpin for DelegateId
impl UnsafeUnpin for DelegateId
impl UnwindSafe for DelegateId
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