pub struct StrategyId(pub SmartString);Expand description
Unique identifier for a strategy
Tuple Fields§
§0: SmartStringImplementations§
Source§impl StrategyId
impl StrategyId
Sourcepub fn from_string(id: &str) -> Self
pub fn from_string(id: &str) -> Self
Create a strategy ID from a string slice
Sourcepub fn into_smart_string(self) -> SmartString
pub fn into_smart_string(self) -> SmartString
Convert to the underlying SmartString
Trait Implementations§
Source§impl Clone for StrategyId
impl Clone for StrategyId
Source§fn clone(&self) -> StrategyId
fn clone(&self) -> StrategyId
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StrategyId
impl Debug for StrategyId
Source§impl<'de> Deserialize<'de> for StrategyId
impl<'de> Deserialize<'de> for StrategyId
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 StrategyId
impl Display for StrategyId
Source§impl From<&str> for StrategyId
impl From<&str> for StrategyId
Source§impl From<SmartString<LazyCompact>> for StrategyId
impl From<SmartString<LazyCompact>> for StrategyId
Source§fn from(id: SmartString) -> Self
fn from(id: SmartString) -> Self
Converts to this type from the input type.
Source§impl From<StrategyId> for SmartString
impl From<StrategyId> for SmartString
Source§fn from(id: StrategyId) -> Self
fn from(id: StrategyId) -> Self
Converts to this type from the input type.
Source§impl FromStr for StrategyId
impl FromStr for StrategyId
Source§impl Hash for StrategyId
impl Hash for StrategyId
Source§impl PartialEq for StrategyId
impl PartialEq for StrategyId
Source§impl Serialize for StrategyId
impl Serialize for StrategyId
impl Eq for StrategyId
impl StructuralPartialEq for StrategyId
Auto Trait Implementations§
impl Freeze for StrategyId
impl RefUnwindSafe for StrategyId
impl Send for StrategyId
impl Sync for StrategyId
impl Unpin for StrategyId
impl UnwindSafe for StrategyId
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
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.