#[non_exhaustive]pub struct Sent {
pub uri: Uri,
pub identity: Option<String>,
pub headers: HeaderMap,
}Available on crate feature
testing only.Expand description
A request a MockSite received, see MockSite::sent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.uri: UriThe requested URI.
identity: Option<String>The name of the identity it went out as, if any.
headers: HeaderMapIts headers.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Sent
impl RefUnwindSafe for Sent
impl Send for Sent
impl Sync for Sent
impl Unpin for Sent
impl UnsafeUnpin for Sent
impl UnwindSafe for Sent
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