Struct ciboulette::CibouletteResourceIdentifierPermissive[][src]

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

A json:api resource identifier object

The id is optional in that case

Fields

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

Implementations

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

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

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

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

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

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

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

pub fn new(
    id: Option<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 CibouletteResourceIdentifierPermissive<'request>[src]

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

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

impl<'request> Serialize for CibouletteResourceIdentifierPermissive<'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

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.