pub struct McpServerId(/* private fields */);Available on crate feature
core only.Implementations§
Source§impl McpServerId
impl McpServerId
pub fn try_new( value: impl Into<String>, ) -> Result<McpServerId, IdValidationError>
pub fn new(value: impl Into<String>) -> McpServerId
pub fn as_str(&self) -> &str
Source§impl McpServerId
impl McpServerId
pub fn from_env() -> Result<McpServerId, IdValidationError>
Trait Implementations§
Source§impl AsRef<str> for McpServerId
impl AsRef<str> for McpServerId
Source§impl Borrow<str> for McpServerId
impl Borrow<str> for McpServerId
Source§impl Clone for McpServerId
impl Clone for McpServerId
Source§fn clone(&self) -> McpServerId
fn clone(&self) -> McpServerId
Returns a duplicate of the value. Read more
1.0.0 · 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 McpServerId
impl Debug for McpServerId
Source§impl<'de> Deserialize<'de> for McpServerId
impl<'de> Deserialize<'de> for McpServerId
Source§fn deserialize<D>(
deserializer: D,
) -> Result<McpServerId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<McpServerId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for McpServerId
impl Display for McpServerId
Source§impl From<&McpServerId> for String
impl From<&McpServerId> for String
Source§fn from(id: &McpServerId) -> String
fn from(id: &McpServerId) -> String
Converts to this type from the input type.
Source§impl From<McpServerId> for String
impl From<McpServerId> for String
Source§fn from(id: McpServerId) -> String
fn from(id: McpServerId) -> String
Converts to this type from the input type.
Source§impl FromStr for McpServerId
impl FromStr for McpServerId
Source§type Err = IdValidationError
type Err = IdValidationError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<McpServerId, <McpServerId as FromStr>::Err>
fn from_str(s: &str) -> Result<McpServerId, <McpServerId as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for McpServerId
impl Hash for McpServerId
Source§impl PartialEq<&str> for McpServerId
impl PartialEq<&str> for McpServerId
Source§impl PartialEq<McpServerId> for &str
impl PartialEq<McpServerId> for &str
Source§impl PartialEq<McpServerId> for str
impl PartialEq<McpServerId> for str
Source§impl PartialEq<str> for McpServerId
impl PartialEq<str> for McpServerId
Source§impl PartialEq for McpServerId
impl PartialEq for McpServerId
Source§impl Serialize for McpServerId
impl Serialize for McpServerId
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
Source§impl ToDbValue for &McpServerId
impl ToDbValue for &McpServerId
fn to_db_value(&self) -> DbValue
fn null_db_value() -> DbValuewhere
Self: Sized,
Source§impl ToDbValue for McpServerId
impl ToDbValue for McpServerId
fn to_db_value(&self) -> DbValue
fn null_db_value() -> DbValuewhere
Self: Sized,
Source§impl TryFrom<&str> for McpServerId
impl TryFrom<&str> for McpServerId
Source§type Error = IdValidationError
type Error = IdValidationError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<McpServerId, <McpServerId as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<McpServerId, <McpServerId as TryFrom<&str>>::Error>
Performs the conversion.
Source§impl TryFrom<String> for McpServerId
impl TryFrom<String> for McpServerId
Source§type Error = IdValidationError
type Error = IdValidationError
The type returned in the event of a conversion error.
Source§fn try_from(
s: String,
) -> Result<McpServerId, <McpServerId as TryFrom<String>>::Error>
fn try_from( s: String, ) -> Result<McpServerId, <McpServerId as TryFrom<String>>::Error>
Performs the conversion.
impl Eq for McpServerId
impl StructuralPartialEq for McpServerId
Auto Trait Implementations§
impl Freeze for McpServerId
impl RefUnwindSafe for McpServerId
impl Send for McpServerId
impl Sync for McpServerId
impl Unpin for McpServerId
impl UnsafeUnpin for McpServerId
impl UnwindSafe for McpServerId
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> 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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.