pub struct PingPayload {
pub document_id: String,
pub upload_path: String,
pub json_body: String,
pub headers: Option<HeaderMap>,
pub body_has_info_sections: bool,
pub ping_name: String,
pub uploader_capabilities: Vec<String>,
}
Expand description
A representation of the data extracted from a ping file,
Fields§
§document_id: String
The ping’s doc_id.
upload_path: String
The path to upload the ping to.
json_body: String
The ping body as JSON-encoded string.
headers: Option<HeaderMap>
HTTP headers to include in the upload request.
body_has_info_sections: bool
Whether the ping body contains {client|ping}_info
ping_name: String
The ping’s name. (Also likely in the upload_path.)
uploader_capabilities: Vec<String>
The capabilities this ping must be uploaded under.
Trait Implementations§
Source§impl Clone for PingPayload
impl Clone for PingPayload
Source§fn clone(&self) -> PingPayload
fn clone(&self) -> PingPayload
Returns a duplicate of the value. Read more
1.0.0 · 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 PingPayload
impl Debug for PingPayload
Source§impl Default for PingPayload
impl Default for PingPayload
Source§fn default() -> PingPayload
fn default() -> PingPayload
Returns the “default value” for a type. Read more
Source§impl MallocSizeOf for PingPayload
impl MallocSizeOf for PingPayload
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl Freeze for PingPayload
impl RefUnwindSafe for PingPayload
impl Send for PingPayload
impl Sync for PingPayload
impl Unpin for PingPayload
impl UnwindSafe for PingPayload
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