pub struct FailureOrigin(/* private fields */);Expand description
A stable component or dependency namespace that originated a failure.
Implementations§
Source§impl FailureOrigin
impl FailureOrigin
Sourcepub fn new(value: impl Into<String>) -> Result<Self, FailureIdentifierError>
pub fn new(value: impl Into<String>) -> Result<Self, FailureIdentifierError>
Validates and constructs the stable identifier.
§Errors
Returns FailureIdentifierError when the value is empty,
oversized, or outside the lowercase segmented ASCII grammar.
Trait Implementations§
Source§impl AsRef<str> for FailureOrigin
impl AsRef<str> for FailureOrigin
Source§impl Borrow<str> for FailureOrigin
impl Borrow<str> for FailureOrigin
Source§impl Clone for FailureOrigin
impl Clone for FailureOrigin
Source§impl Debug for FailureOrigin
impl Debug for FailureOrigin
Source§impl<'de> Deserialize<'de> for FailureOrigin
impl<'de> Deserialize<'de> for FailureOrigin
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 FailureOrigin
impl Display for FailureOrigin
impl Eq for FailureOrigin
Source§impl From<FailureOrigin> for String
impl From<FailureOrigin> for String
Source§fn from(value: FailureOrigin) -> Self
fn from(value: FailureOrigin) -> Self
Converts to this type from the input type.
Source§impl FromStr for FailureOrigin
impl FromStr for FailureOrigin
Source§impl Hash for FailureOrigin
impl Hash for FailureOrigin
Source§impl JsonSchema for FailureOrigin
impl JsonSchema for FailureOrigin
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for FailureOrigin
impl Ord for FailureOrigin
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 FailureOrigin
impl PartialEq for FailureOrigin
Source§impl PartialOrd for FailureOrigin
impl PartialOrd for FailureOrigin
Source§impl Serialize for FailureOrigin
impl Serialize for FailureOrigin
impl StructuralPartialEq for FailureOrigin
Source§impl TryFrom<&str> for FailureOrigin
impl TryFrom<&str> for FailureOrigin
Auto Trait Implementations§
impl Forget for FailureOrigin
impl Freeze for FailureOrigin
impl Move for FailureOrigin
impl RefUnwindSafe for FailureOrigin
impl Send for FailureOrigin
impl Sync for FailureOrigin
impl Unpin for FailureOrigin
impl UnsafeUnpin for FailureOrigin
impl UnwindSafe for FailureOrigin
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