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: StringThe ping’s doc_id.
upload_path: StringThe path to upload the ping to.
json_body: StringThe ping body as JSON-encoded string.
headers: Option<HeaderMap>HTTP headers to include in the upload request.
body_has_info_sections: boolWhether the ping body contains {client|ping}_info
ping_name: StringThe 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 copy 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
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