#[non_exhaustive]pub struct Request {
pub signal: Signal,
pub url: String,
pub headers: Vec<(&'static str, String)>,
pub body: Vec<u8>,
}Expand description
An HTTP POST request to Flare, ready to send.
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.signal: SignalWhat kind of data the body holds.
url: StringThe full URL, like https://ingress.flareapp.io/v1/logs.
headers: Vec<(&'static str, String)>Header names and values. They include the API key.
body: Vec<u8>The body, in the format that the content-type header names: JSON for
error reports, and OTLP protobuf or JSON for logs and traces.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Request
impl Freeze for Requestwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(&'static str, String)>: Freeze,
impl Move for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Requestwhere
RawVecInner: Sync,
impl Unpin for Request
impl UnsafeUnpin for Requestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(&'static str, String)>: UnsafeUnpin,
impl UnwindSafe for Request
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