pub struct IntentKey(/* private fields */);Expand description
IntentKey
Stable, bounded identifier for a contended resource.
An intent key names what is being reserved, not how the reservation is enforced. Keys are opaque strings with a fixed maximum length to ensure safe storage and indexing.
Examples:
- “vendor:abc123:inventory”
- “collection:xyz:mint”
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IntentKey
impl RefUnwindSafe for IntentKey
impl Send for IntentKey
impl Sync for IntentKey
impl Unpin for IntentKey
impl UnwindSafe for IntentKey
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> Casing<T> for T
impl<T> Casing<T> for T
Source§fn to_case(&self, case: Case<'_>) -> String
fn to_case(&self, case: Case<'_>) -> String
Convert the string into the given case. It will reference
self and create a new
String with the same pattern and delimiter as case. It will split on boundaries
defined at Boundary::defaults(). Read moreSource§fn set_boundaries(&self, bs: &[Boundary]) -> StateConverter<'_, T>
fn set_boundaries(&self, bs: &[Boundary]) -> StateConverter<'_, T>
Creates a
StateConverter struct initialized with the boundaries provided. Read moreSource§fn remove_boundaries(&self, bs: &[Boundary]) -> StateConverter<'_, T>
fn remove_boundaries(&self, bs: &[Boundary]) -> StateConverter<'_, T>
Creates a
StateConverter struct initialized without the boundaries
provided. Read moreSource§fn from_case(&self, case: Case<'_>) -> StateConverter<'_, T>
fn from_case(&self, case: Case<'_>) -> StateConverter<'_, T>
Start the case conversion by storing the boundaries associated with the given case. Read more
Source§fn remove_empty(&self) -> StateConverter<'_, T>
fn remove_empty(&self) -> StateConverter<'_, T>
Creates a
StateConverter with the RemoveEmpty pattern prepended.
This filters out empty words before conversion, useful when splitting
produces empty words from leading, trailing, and duplicate delimiters. Read more