Struct ciboulette::CibouletteResponseElement[][src]

pub struct CibouletteResponseElement<'request, B> { /* fields omitted */ }

Container for response element.

While building a response, every object should be wrapped in this container

Implementations

impl<'request, B> CibouletteResponseElement<'request, B>[src]

pub fn type_(&self) -> &Arc<CibouletteResourceType>[src]

The type of the contained value

pub fn identifier(&self) -> &CibouletteResourceResponseIdentifier<'request>[src]

The identifier of the contained value

pub fn data(&self) -> &Option<B>[src]

The data of the contained value

pub fn related(&self) -> &Option<CibouletteResponseElementAlias<'request>>[src]

Some other identifier it relates to

impl<'request, B> CibouletteResponseElement<'request, B>[src]

pub fn new(
    store: &CibouletteStore,
    main_type: &Arc<CibouletteResourceType>,
    identifier: CibouletteResourceIdentifierBuilder<'request>,
    data: Option<B>,
    related: Option<CibouletteResourceIdentifierBuilder<'request>>
) -> Result<Self, CibouletteError>
[src]

Trait Implementations

impl<'request, B: Clone> Clone for CibouletteResponseElement<'request, B>[src]

impl<'request, B: Debug> Debug for CibouletteResponseElement<'request, B>[src]

impl<'request, B> Serialize for CibouletteResponseElement<'request, B> where
    B: Serialize
[src]

Auto Trait Implementations

impl<'request, B> RefUnwindSafe for CibouletteResponseElement<'request, B> where
    B: RefUnwindSafe

impl<'request, B> Send for CibouletteResponseElement<'request, B> where
    B: Send

impl<'request, B> Sync for CibouletteResponseElement<'request, B> where
    B: Sync

impl<'request, B> Unpin for CibouletteResponseElement<'request, B> where
    B: Unpin

impl<'request, B> UnwindSafe for CibouletteResponseElement<'request, B> where
    B: UnwindSafe

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.