[−][src]Struct sync15::telemetry::SyncTelemetryPing
The Sync ping payload, as documented at https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/data/sync-ping.html. May have many syncs, may have many events. However, due to the architecture of apps which use these components, this payload is almost certainly not suitable for submitting directly. For example, we will always return a payload with exactly 1 sync, and it will not know certain other fields in the payload, such as the hashed FxA device ID (see https://searchfox.org/mozilla-central/rev/c3ebaf6de2d481c262c04bb9657eaf76bf47e2ac/services/sync/modules/browserid_identity.js#185 for an example of how the device ID is constructed). The intention is that consumers of this will use this to create a "real" payload - eg, accumulating until some threshold number of syncs is reached, and contributing additional data which only the consumer knows.
Fields
version: u32
uid: Option<String>
events: Vec<Event>
syncs: Vec<SyncTelemetry>
Implementations
impl SyncTelemetryPing
[src]
pub fn new() -> SyncTelemetryPing
[src]
pub fn uid(&mut self, uid: String)
[src]
pub fn sync(&mut self, s: SyncTelemetry)
[src]
pub fn event(&mut self, e: Event)
[src]
Trait Implementations
impl Debug for SyncTelemetryPing
[src]
impl Default for SyncTelemetryPing
[src]
fn default() -> SyncTelemetryPing
[src]
impl IntoFfi for SyncTelemetryPing where
SyncTelemetryPing: Serialize,
[src]
SyncTelemetryPing: Serialize,
type Value = *mut i8
This type must be: Read more
fn ffi_default() -> *mut i8
[src]
fn into_ffi_value(self) -> *mut i8
[src]
impl Serialize for SyncTelemetryPing
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for SyncTelemetryPing
impl Send for SyncTelemetryPing
impl Sync for SyncTelemetryPing
impl Unpin for SyncTelemetryPing
impl UnwindSafe for SyncTelemetryPing
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, 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>,