[][src]Struct sync15::telemetry::SyncTelemetryPing

pub struct SyncTelemetryPing {
    version: u32,
    uid: Option<String>,
    events: Vec<Event>,
    syncs: Vec<SyncTelemetry>,
}

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: u32uid: 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]

impl IntoFfi for SyncTelemetryPing where
    SyncTelemetryPing: Serialize
[src]

type Value = *mut i8

This type must be: Read more

impl Serialize for SyncTelemetryPing[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,