Struct glean_core::ping::Ping

source ·
pub struct Ping<'a> {
    pub doc_id: &'a str,
    pub name: &'a str,
    pub url_path: &'a str,
    pub content: JsonValue,
    pub headers: HeaderMap,
    pub includes_info_sections: bool,
    pub schedules_pings: Vec<String>,
}
Expand description

Holds everything you need to store or send a ping.

Fields§

§doc_id: &'a str

The unique document id.

§name: &'a str

The ping’s name.

§url_path: &'a str

The path on the server to use when uplaoding this ping.

§content: JsonValue

The payload, including *_info fields.

§headers: HeaderMap

The headers to upload with the payload.

§includes_info_sections: bool

Whether the content contains {client|ping}_info sections.

§schedules_pings: Vec<String>

Other pings that should be scheduled when this ping is sent.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Create a new handle for an Arc value Read more
Clone a handle Read more
Consume a handle, getting back the initial Arc<>
Get a clone of the Arc<> using a “borrowed” handle. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.