pub struct ApiVersionParseError(pub String);Expand description
Error returned when an ApiVersion string cannot be parsed.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for ApiVersionParseError
impl Clone for ApiVersionParseError
Source§fn clone(&self) -> ApiVersionParseError
fn clone(&self) -> ApiVersionParseError
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 ApiVersionParseError
impl Debug for ApiVersionParseError
Source§impl<'de> Deserialize<'de> for ApiVersionParseError
impl<'de> Deserialize<'de> for ApiVersionParseError
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 ApiVersionParseError
impl Display for ApiVersionParseError
Source§impl Error for ApiVersionParseError
Available on crate feature std only.
impl Error for ApiVersionParseError
Available on crate feature
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ApiVersionParseError
impl PartialEq for ApiVersionParseError
Source§impl Serialize for ApiVersionParseError
impl Serialize for ApiVersionParseError
impl Eq for ApiVersionParseError
impl StructuralPartialEq for ApiVersionParseError
Auto Trait Implementations§
impl Freeze for ApiVersionParseError
impl RefUnwindSafe for ApiVersionParseError
impl Send for ApiVersionParseError
impl Sync for ApiVersionParseError
impl Unpin for ApiVersionParseError
impl UnsafeUnpin for ApiVersionParseError
impl UnwindSafe for ApiVersionParseError
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<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP