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

pub struct DataOptionsBuilder { /* fields omitted */ }

Builder for DataOptions.

Implementations

impl DataOptionsBuilder[src]

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

Data object kind

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

Data object body

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

Data expiry time

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

Public options attached to the data object

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

Private options attached to the data object

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

Builds a new DataOptions.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for DataOptionsBuilder[src]

impl Default for DataOptionsBuilder[src]

Auto Trait Implementations

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> Clear for T where
    T: InitializableFromZeroed + ?Sized

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

impl<T> InitializableFromZeroed for T where
    T: Default

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.