pub struct ToolEventSubscriptionId(/* private fields */);Expand description
Forward-compatible subscription identifier used by plugin manifests.
Implementations§
Source§impl ToolEventSubscriptionId
impl ToolEventSubscriptionId
pub fn new(value: impl Into<String>) -> ToolEventSubscriptionId
pub fn file_changed_v1() -> ToolEventSubscriptionId
pub fn as_str(&self) -> &str
pub fn is_file_changed_v1(&self) -> bool
Trait Implementations§
Source§impl Clone for ToolEventSubscriptionId
impl Clone for ToolEventSubscriptionId
Source§fn clone(&self) -> ToolEventSubscriptionId
fn clone(&self) -> ToolEventSubscriptionId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolEventSubscriptionId
impl Debug for ToolEventSubscriptionId
Source§impl<'de> Deserialize<'de> for ToolEventSubscriptionId
impl<'de> Deserialize<'de> for ToolEventSubscriptionId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolEventSubscriptionId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolEventSubscriptionId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolEventSubscriptionId
Source§impl Hash for ToolEventSubscriptionId
impl Hash for ToolEventSubscriptionId
Source§impl Ord for ToolEventSubscriptionId
impl Ord for ToolEventSubscriptionId
Source§fn cmp(&self, other: &ToolEventSubscriptionId) -> Ordering
fn cmp(&self, other: &ToolEventSubscriptionId) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ToolEventSubscriptionId
impl PartialEq for ToolEventSubscriptionId
Source§impl PartialOrd for ToolEventSubscriptionId
impl PartialOrd for ToolEventSubscriptionId
Source§impl Serialize for ToolEventSubscriptionId
impl Serialize for ToolEventSubscriptionId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ToolEventSubscriptionId
Auto Trait Implementations§
impl Freeze for ToolEventSubscriptionId
impl RefUnwindSafe for ToolEventSubscriptionId
impl Send for ToolEventSubscriptionId
impl Sync for ToolEventSubscriptionId
impl Unpin for ToolEventSubscriptionId
impl UnsafeUnpin for ToolEventSubscriptionId
impl UnwindSafe for ToolEventSubscriptionId
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.