[][src]Struct dsf_core::service::publisher::SecondaryOptionsBuilder

pub struct SecondaryOptionsBuilder { /* fields omitted */ }

Builder for SecondaryOptions.

Methods

impl SecondaryOptionsBuilder[src]

pub fn id(&mut self, value: Id) -> &mut Self[src]

ID of primary service

pub fn application_id(&mut self, value: u16) -> &mut Self[src]

Application ID of primary service

pub fn page_kind(&mut self, value: Kind) -> &mut Self[src]

Page object kind

pub fn version(&mut self, value: u16) -> &mut Self[src]

Page version This is monotonically increased for any successive publishing of the same page

pub fn body(&mut self, value: Body) -> &mut Self[src]

Page body

pub fn expiry(&mut self, value: Option<SystemTime>) -> &mut Self[src]

Page expiry time

pub fn public_options(&mut self, value: Vec<Options>) -> &mut Self[src]

Public options attached to the page

pub fn private_options(&mut self, value: PrivateOptions) -> &mut Self[src]

Private options attached to the page

pub fn build(&self) -> Result<SecondaryOptions, String>[src]

Builds a new SecondaryOptions.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for SecondaryOptionsBuilder[src]

impl Default for SecondaryOptionsBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]