pub struct InstanceUid(/* private fields */);Expand description
An agent instance identifier (ai_agent.instance_uid).
Same invariants as SessionId; the custom Deserialize runs
Self::parse so wire-supplied ids embedded in any struct field
cannot bypass the visible-ASCII / length checks.
Implementations§
Trait Implementations§
Source§impl Clone for InstanceUid
impl Clone for InstanceUid
Source§fn clone(&self) -> InstanceUid
fn clone(&self) -> InstanceUid
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 InstanceUid
impl Debug for InstanceUid
Source§impl<'de> Deserialize<'de> for InstanceUid
impl<'de> Deserialize<'de> for InstanceUid
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InstanceUid
impl Display for InstanceUid
Source§impl Hash for InstanceUid
impl Hash for InstanceUid
Source§impl PartialEq for InstanceUid
impl PartialEq for InstanceUid
Source§fn eq(&self, other: &InstanceUid) -> bool
fn eq(&self, other: &InstanceUid) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstanceUid
impl Serialize for InstanceUid
impl Eq for InstanceUid
impl StructuralPartialEq for InstanceUid
Auto Trait Implementations§
impl Freeze for InstanceUid
impl RefUnwindSafe for InstanceUid
impl Send for InstanceUid
impl Sync for InstanceUid
impl Unpin for InstanceUid
impl UnsafeUnpin for InstanceUid
impl UnwindSafe for InstanceUid
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
Checks if this value is equivalent to the given key. Read more
§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.