pub struct ManifestError { /* private fields */ }Expand description
A manifest refusal: the rule and the member it concerns.
The controller answers it as 400 invalid with error.field set to
field. The message never echoes a member’s value.
Implementations§
Source§impl ManifestError
impl ManifestError
Sourcepub fn rule(&self) -> ManifestRule
pub fn rule(&self) -> ManifestRule
Returns the rule broken.
Sourcepub fn field(&self) -> &str
pub fn field(&self) -> &str
Returns the member, as a path such as containers[1].modes or
limits.cpus; empty for ManifestRule::Json.
Trait Implementations§
Source§impl Clone for ManifestError
impl Clone for ManifestError
Source§impl Debug for ManifestError
impl Debug for ManifestError
Source§impl Display for ManifestError
impl Display for ManifestError
impl Eq for ManifestError
Source§impl Error for ManifestError
impl Error for ManifestError
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 Hash for ManifestError
impl Hash for ManifestError
Source§impl PartialEq for ManifestError
impl PartialEq for ManifestError
impl StructuralPartialEq for ManifestError
Auto Trait Implementations§
impl Forget for ManifestError
impl Freeze for ManifestError
impl Move for ManifestError
impl RefUnwindSafe for ManifestError
impl Send for ManifestErrorwhere
RawVecInner: Send,
impl Sync for ManifestErrorwhere
RawVecInner: Sync,
impl Unpin for ManifestError
impl UnsafeUnpin for ManifestError
impl UnwindSafe for ManifestErrorwhere
RawVecInner: UnwindSafe,
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