[][src]Struct sync_manager::msg_types::SyncParams

pub struct SyncParams {
    pub engines_to_sync: Vec<String>,
    pub sync_all_engines: bool,
    pub reason: i32,
    pub engines_to_change_state: HashMap<String, bool>,
    pub persisted_state: Option<String>,
    pub acct_key_id: String,
    pub acct_access_token: String,
    pub acct_tokenserver_url: String,
    pub acct_sync_key: String,
    pub fxa_device_id: String,
    pub device_name: String,
    pub device_type: i32,
}

Fields

engines_to_sync: Vec<String>sync_all_engines: boolreason: i32engines_to_change_state: HashMap<String, bool>persisted_state: Option<String>acct_key_id: String

These conceptually are a nested type, but exposing them as such would add needless complexity to the FFI.

acct_access_token: Stringacct_tokenserver_url: Stringacct_sync_key: Stringfxa_device_id: Stringdevice_name: Stringdevice_type: i32

Implementations

impl SyncParams[src]

pub fn reason(&self) -> SyncReason[src]

Returns the enum value of reason, or the default if the field is set to an invalid enum value.

pub fn set_reason(&mut self, value: SyncReason)[src]

Sets reason to the provided enum value.

pub fn persisted_state(&self) -> &str[src]

Returns the value of persisted_state, or the default value if persisted_state is unset.

pub fn device_type(&self) -> DeviceType[src]

Returns the enum value of device_type, or the default if the field is set to an invalid enum value.

pub fn set_device_type(&mut self, value: DeviceType)[src]

Sets device_type to the provided enum value.

Trait Implementations

impl Clone for SyncParams[src]

impl Debug for SyncParams[src]

impl Default for SyncParams[src]

impl IntoFfi for SyncParams where
    SyncParams: Message
[src]

type Value = ByteBuffer

This type must be: Read more

impl Message for SyncParams[src]

impl PartialEq<SyncParams> for SyncParams[src]

impl StructuralPartialEq for SyncParams[src]

Auto Trait Implementations

impl RefUnwindSafe for SyncParams

impl Send for SyncParams

impl Sync for SyncParams

impl Unpin for SyncParams

impl UnwindSafe for SyncParams

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,