pub struct NamedConditionId(pub String);Expand description
Registry key for a consumer-registered named condition, e.g. "my-crate.has_tool_calls".
The name is the stable cross-version identity of the predicate: it is what
crate::def::ConditionDef serializes and what the GUI prints.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for NamedConditionId
impl Clone for NamedConditionId
Source§impl Debug for NamedConditionId
impl Debug for NamedConditionId
Source§impl<'de> Deserialize<'de> for NamedConditionId
impl<'de> Deserialize<'de> for NamedConditionId
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 NamedConditionId
impl Display for NamedConditionId
impl Eq for NamedConditionId
Source§impl From<&str> for NamedConditionId
impl From<&str> for NamedConditionId
Source§impl From<String> for NamedConditionId
impl From<String> for NamedConditionId
Source§impl Hash for NamedConditionId
impl Hash for NamedConditionId
Source§impl PartialEq for NamedConditionId
impl PartialEq for NamedConditionId
Source§impl Serialize for NamedConditionId
impl Serialize for NamedConditionId
impl StructuralPartialEq for NamedConditionId
Auto Trait Implementations§
impl Freeze for NamedConditionId
impl RefUnwindSafe for NamedConditionId
impl Send for NamedConditionId
impl Sync for NamedConditionId
impl Unpin for NamedConditionId
impl UnsafeUnpin for NamedConditionId
impl UnwindSafe for NamedConditionId
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> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
impl<T> DebuggableStorage for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.