pub struct McpNonEmptyString(pub String);Expand description
A string argument that rejects an empty string.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for McpNonEmptyString
impl Clone for McpNonEmptyString
Source§fn clone(&self) -> McpNonEmptyString
fn clone(&self) -> McpNonEmptyString
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 McpNonEmptyString
impl Debug for McpNonEmptyString
Source§impl<'de> Deserialize<'de> for McpNonEmptyString
impl<'de> Deserialize<'de> for McpNonEmptyString
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for McpNonEmptyString
Source§impl Hash for McpNonEmptyString
impl Hash for McpNonEmptyString
Source§impl PartialEq for McpNonEmptyString
impl PartialEq for McpNonEmptyString
Source§fn eq(&self, other: &McpNonEmptyString) -> bool
fn eq(&self, other: &McpNonEmptyString) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for McpNonEmptyString
Auto Trait Implementations§
impl Freeze for McpNonEmptyString
impl RefUnwindSafe for McpNonEmptyString
impl Send for McpNonEmptyString
impl Sync for McpNonEmptyString
impl Unpin for McpNonEmptyString
impl UnsafeUnpin for McpNonEmptyString
impl UnwindSafe for McpNonEmptyString
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