pub struct IntentId(pub String);Expand description
Unique identifier for a Root Intent.
Tuple Fields§
§0: StringImplementations§
Source§impl IntentId
impl IntentId
Sourcepub fn generate() -> Self
👎Deprecated since 2.0.0: Use converge-runtime with Randomness trait for random ID generation
pub fn generate() -> Self
Generates a new unique intent ID.
§Deprecation Notice
This method uses timestamp + process ID + counter for uniqueness.
For cryptographically random IDs, use converge-runtime with a
Randomness implementation.
Trait Implementations§
impl Eq for IntentId
impl StructuralPartialEq for IntentId
Auto Trait Implementations§
impl Freeze for IntentId
impl RefUnwindSafe for IntentId
impl Send for IntentId
impl Sync for IntentId
impl Unpin for IntentId
impl UnwindSafe for IntentId
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