Enum ciboulette::CiboulettePath[][src]

pub enum CiboulettePath<'request> {
    Type(Arc<CibouletteResourceType>),
    TypeId(Arc<CibouletteResourceType>, CibouletteId<'request>),
    TypeIdRelated(Arc<CibouletteResourceType>, CibouletteId<'request>, CibouletteResourceRelationshipDetails),
    TypeIdRelationship(Arc<CibouletteResourceType>, CibouletteId<'request>, CibouletteResourceRelationshipDetails),
}

Variants

The base type

The base type and its id

The base type, its id and the relationship details with the related type

The base type, its id and the relationship details with the related type

Implementations

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

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

Return the main type of the path

The base type for Type and TypeId and the related type for TypeIdRelated and TypeIdRelationship

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

Return the first type of the path

Trait Implementations

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

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

impl From<&'_ CiboulettePath<'_>> for CiboulettePathType[src]

Auto Trait Implementations

impl<'request> RefUnwindSafe for CiboulettePath<'request>

impl<'request> Send for CiboulettePath<'request>

impl<'request> Sync for CiboulettePath<'request>

impl<'request> Unpin for CiboulettePath<'request>

impl<'request> UnwindSafe for CiboulettePath<'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<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.