[−][src]Struct glean_core::upload::PingRequest
Represents a request to upload a ping.
Fields
document_id: StringThe Job ID to identify this request, this is the same as the ping UUID.
path: StringThe path for the server to upload the ping to.
body: Vec<u8>The body of the request, as a byte array. If gzip encoded, then
the headers list will contain a Content-Encoding header with
the value gzip.
headers: HashMap<&'static str, String>A map with all the headers to be sent with the request.
Implementations
impl PingRequest[src]
pub fn new(document_id: &str, path: &str, body: JsonValue) -> Self[src]
Creates a new PingRequest.
Automatically creates the default request headers.
pub fn is_deletion_request(&self) -> bool[src]
Verifies if current request is for a deletion-request ping.
pub fn pretty_body(&self) -> Option<String>[src]
Decompress and pretty-format the ping payload
Should be used for logging when required. This decompresses the payload in memory.
Trait Implementations
impl Clone for PingRequest[src]
fn clone(&self) -> PingRequest[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for PingRequest[src]
impl PartialEq<PingRequest> for PingRequest[src]
fn eq(&self, other: &PingRequest) -> bool[src]
fn ne(&self, other: &PingRequest) -> bool[src]
impl StructuralPartialEq for PingRequest[src]
Auto Trait Implementations
impl RefUnwindSafe for PingRequest
impl Send for PingRequest
impl Sync for PingRequest
impl Unpin for PingRequest
impl UnwindSafe for PingRequest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,