pub struct ExpectedDenial { /* private fields */ }Expand description
Expected HTTP denial response.
Implementations§
Source§impl ExpectedDenial
impl ExpectedDenial
Sourcepub fn with_message(self, message: impl Into<String>) -> Self
pub fn with_message(self, message: impl Into<String>) -> Self
Expects the denial body to contain this exact message.
Sourcepub fn with_reason(self, reason: impl Into<String>) -> Self
pub fn with_reason(self, reason: impl Into<String>) -> Self
Expects the denial body to contain this exact reason code.
Sourcepub fn without_reason(self) -> Self
pub fn without_reason(self) -> Self
Expects the denial body to omit its reason code.
Trait Implementations§
Source§impl Clone for ExpectedDenial
impl Clone for ExpectedDenial
Source§fn clone(&self) -> ExpectedDenial
fn clone(&self) -> ExpectedDenial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExpectedDenial
impl Debug for ExpectedDenial
impl Eq for ExpectedDenial
Source§impl PartialEq for ExpectedDenial
impl PartialEq for ExpectedDenial
impl StructuralPartialEq for ExpectedDenial
Auto Trait Implementations§
impl Freeze for ExpectedDenial
impl RefUnwindSafe for ExpectedDenial
impl Send for ExpectedDenial
impl Sync for ExpectedDenial
impl Unpin for ExpectedDenial
impl UnsafeUnpin for ExpectedDenial
impl UnwindSafe for ExpectedDenial
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