pub struct FromArgsError {
pub field: &'static str,
pub source: FromArgsErrorSource,
}Fields§
§field: &'static str§source: FromArgsErrorSourceImplementations§
Source§impl FromArgsError
impl FromArgsError
Sourcepub fn path_parse(field: &'static str, source: String) -> Self
pub fn path_parse(field: &'static str, source: String) -> Self
Build a FromArgsError from a docker-style path parse error
produced by [super::path_ref::PathRef::from_str] or the
FromStr impl on crate::RemotePathCommitOptional.
Sourcepub fn json(field: &'static str, source: Error<Error>) -> Self
pub fn json(field: &'static str, source: Error<Error>) -> Self
Build a FromArgsError from a serde_path_to_error-wrapped
JSON deserialization failure. Existing call sites that built
FromArgsError { field, source } with a serde_path_to_error
error keep working — source accepts both shapes via the
From<serde_path_to_error::Error<serde_json::Error>> impl.
Trait Implementations§
Source§impl Debug for FromArgsError
impl Debug for FromArgsError
Source§impl Display for FromArgsError
impl Display for FromArgsError
Source§impl Error for FromArgsError
impl Error for FromArgsError
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 From<FromArgsError> for ParseError
impl From<FromArgsError> for ParseError
Source§fn from(e: FromArgsError) -> Self
fn from(e: FromArgsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FromArgsError
impl !UnwindSafe for FromArgsError
impl Freeze for FromArgsError
impl Send for FromArgsError
impl Sync for FromArgsError
impl Unpin for FromArgsError
impl UnsafeUnpin for FromArgsError
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.