pub struct Malformed(pub String);Expand description
Why a served body is not a build identity. The reason is the value: a refusal that says only “invalid” sends the reader to look at the site by hand.
use majordomus_cli::served::{BuildIdentity, Malformed};
let Malformed(why) = BuildIdentity::parse(b"<html>").unwrap_err();
assert!(why.contains("not JSON"), "{why}");Tuple Fields§
§0: StringTrait Implementations§
impl Eq for Malformed
impl StructuralPartialEq for Malformed
Auto Trait Implementations§
impl Freeze for Malformed
impl RefUnwindSafe for Malformed
impl Send for Malformed
impl Sync for Malformed
impl Unpin for Malformed
impl UnsafeUnpin for Malformed
impl UnwindSafe for Malformed
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.