pub struct Delivery {
pub url: String,
pub headers: Vec<(String, String)>,
pub body: String,
}Expand description
An HTTP POST a Subscriber asks Ocre to send for a report.
§Examples
let delivery = ocre::errors::Delivery {
url: "https://errors.example/api/reports".into(),
headers: vec![("content-type".into(), "application/json".into())],
body: "{}".into(),
};Fields§
§url: StringWhere to POST.
headers: Vec<(String, String)>Request headers, e.g. an API key.
body: StringThe request body.
Trait Implementations§
impl StructuralPartialEq for Delivery
Auto Trait Implementations§
impl Freeze for Delivery
impl RefUnwindSafe for Delivery
impl Send for Delivery
impl Sync for Delivery
impl Unpin for Delivery
impl UnsafeUnpin for Delivery
impl UnwindSafe for Delivery
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