pub struct InvocationId(/* private fields */);Expand description
A typed wrapper around a single execution or turn identifier.
§Examples
use adk_core::identity::InvocationId;
// Parse from a known value
let iid = InvocationId::try_from("inv-001").unwrap();
assert_eq!(iid.as_ref(), "inv-001");
// Or generate a new UUID-based invocation ID
let generated = InvocationId::generate();
assert!(!generated.as_ref().is_empty());Implementations§
Source§impl InvocationId
impl InvocationId
Sourcepub fn new_unchecked(value: impl Into<String>) -> Self
pub fn new_unchecked(value: impl Into<String>) -> Self
Trait Implementations§
Source§impl AsRef<str> for InvocationId
impl AsRef<str> for InvocationId
Source§impl Borrow<str> for InvocationId
impl Borrow<str> for InvocationId
Source§impl Clone for InvocationId
impl Clone for InvocationId
Source§fn clone(&self) -> InvocationId
fn clone(&self) -> InvocationId
Returns a duplicate of the value. Read more
1.0.0 · 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 InvocationId
impl Debug for InvocationId
Source§impl<'de> Deserialize<'de> for InvocationId
impl<'de> Deserialize<'de> for InvocationId
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 InvocationId
impl Display for InvocationId
Source§impl FromStr for InvocationId
impl FromStr for InvocationId
Source§impl Hash for InvocationId
impl Hash for InvocationId
Source§impl Ord for InvocationId
impl Ord for InvocationId
Source§fn cmp(&self, other: &InvocationId) -> Ordering
fn cmp(&self, other: &InvocationId) -> Ordering
1.21.0 · 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 InvocationId
impl PartialEq for InvocationId
Source§impl PartialOrd for InvocationId
impl PartialOrd for InvocationId
Source§impl Serialize for InvocationId
impl Serialize for InvocationId
Source§impl TryFrom<&str> for InvocationId
impl TryFrom<&str> for InvocationId
Source§impl TryFrom<String> for InvocationId
impl TryFrom<String> for InvocationId
impl Eq for InvocationId
impl StructuralPartialEq for InvocationId
Auto Trait Implementations§
impl Freeze for InvocationId
impl RefUnwindSafe for InvocationId
impl Send for InvocationId
impl Sync for InvocationId
impl Unpin for InvocationId
impl UnsafeUnpin for InvocationId
impl UnwindSafe for InvocationId
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