Struct ciboulette::CibouletteResourceIdentifier[][src]

pub struct CibouletteResourceIdentifier<'request> {
    pub type_: Cow<'request, str>,
    pub id: CibouletteId<'request>,
}

A json:api resource identifier object

The id is not optional in that case

Fields

type_: Cow<'request, str>id: CibouletteId<'request>

Implementations

impl<'request> CibouletteResourceIdentifier<'request>[src]

pub fn type_(&self) -> &Cow<'request, str>[src]

pub fn id(&self) -> &CibouletteId<'request>[src]

impl<'request> CibouletteResourceIdentifier<'request>[src]

pub fn type__mut(&mut self) -> &mut Cow<'request, str>[src]

pub fn id_mut(&mut self) -> &mut CibouletteId<'request>[src]

impl<'request> CibouletteResourceIdentifier<'request>[src]

pub fn new(id: CibouletteId<'request>, type_: Cow<'request, str>) -> Self[src]

Create a new resource identifier from an id, a type an potentially a meta argument

Trait Implementations

impl<'request> Clone for CibouletteResourceIdentifier<'request>[src]

impl<'request> Debug for CibouletteResourceIdentifier<'request>[src]

impl<'request> Eq for CibouletteResourceIdentifier<'request>[src]

impl<'request> From<CibouletteResourceIdentifier<'request>> for CibouletteResourceIdentifierPermissive<'request>[src]

impl<'request> Ord for CibouletteResourceIdentifier<'request>[src]

impl<'request> PartialEq<CibouletteResourceIdentifier<'request>> for CibouletteResourceIdentifier<'request>[src]

impl<'request> PartialOrd<CibouletteResourceIdentifier<'request>> for CibouletteResourceIdentifier<'request>[src]

impl<'request> Serialize for CibouletteResourceIdentifier<'request>[src]

impl<'request> TryFrom<CibouletteResourceIdentifierPermissive<'request>> for CibouletteResourceIdentifier<'request>[src]

type Error = CibouletteError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'request> RefUnwindSafe for CibouletteResourceIdentifier<'request>

impl<'request> Send for CibouletteResourceIdentifier<'request>

impl<'request> Sync for CibouletteResourceIdentifier<'request>

impl<'request> Unpin for CibouletteResourceIdentifier<'request>

impl<'request> UnwindSafe for CibouletteResourceIdentifier<'request>

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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.