[][src]Struct sync_manager::msg_types::SyncResult

pub struct SyncResult {
    pub status: i32,
    pub results: HashMap<String, String>,
    pub declined: Vec<String>,
    pub have_declined: bool,
    pub next_sync_allowed_at: Option<i64>,
    pub persisted_state: String,
    pub telemetry_json: Option<String>,
}

Fields

status: i32results: HashMap<String, String>

empty string used for 'no error'

declined: Vec<String>have_declined: bool

false if we didn't manage to check declined.

next_sync_allowed_at: Option<i64>persisted_state: Stringtelemetry_json: Option<String>

Implementations

impl SyncResult[src]

pub fn status(&self) -> ServiceStatus[src]

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

pub fn set_status(&mut self, value: ServiceStatus)[src]

Sets status to the provided enum value.

pub fn next_sync_allowed_at(&self) -> i64[src]

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

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

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

Trait Implementations

impl Clone for SyncResult[src]

impl Debug for SyncResult[src]

impl Default for SyncResult[src]

impl IntoFfi for SyncResult where
    SyncResult: Message
[src]

type Value = ByteBuffer

This type must be: Read more

impl Message for SyncResult[src]

impl PartialEq<SyncResult> for SyncResult[src]

impl StructuralPartialEq for SyncResult[src]

Auto Trait Implementations

impl RefUnwindSafe for SyncResult

impl Send for SyncResult

impl Sync for SyncResult

impl Unpin for SyncResult

impl UnwindSafe for SyncResult

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