Struct ciboulette::CibouletteUpdateRequest[][src]

pub struct CibouletteUpdateRequest<'request> {
    pub resource_type: Arc<CibouletteResourceType>,
    pub resource_id: CibouletteId<'request>,
    pub related_type: Option<Arc<CibouletteResourceType>>,
    pub path: CiboulettePath<'request>,
    pub query: CibouletteQueryParameters<'request>,
    pub data: CibouletteUpdateRequestType<'request>,
    pub meta: Option<Value>,
    pub expected_response_type: CibouletteResponseRequiredType,
}

An UPDATE request

Fields

resource_type: Arc<CibouletteResourceType>

The base type beeing updated

resource_id: CibouletteId<'request>

The resource id on which the update is based

related_type: Option<Arc<CibouletteResourceType>>

If updating a relationships, the related type

path: CiboulettePath<'request>

The path used to query

query: CibouletteQueryParameters<'request>

The query parameters included

data: CibouletteUpdateRequestType<'request>

The update requests data provided by the client

meta: Option<Value>

The meta data included by the client

expected_response_type: CibouletteResponseRequiredType

The expected response type for that request

Implementations

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

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

The base type beeing updated

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

The resource id on which the update is based

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

If updating a relationships, the related type

pub fn path(&self) -> &CiboulettePath<'request>[src]

The path used to query

pub fn query(&self) -> &CibouletteQueryParameters<'request>[src]

The query parameters included

pub fn data(&self) -> &CibouletteUpdateRequestType<'request>[src]

The update requests data provided by the client

pub fn meta(&self) -> &Option<Value>[src]

The meta data included by the client

pub fn expected_response_type(&self) -> &CibouletteResponseRequiredType[src]

The expected response type for that request

Trait Implementations

impl<'request> CibouletteRequestCommons<'request> for CibouletteUpdateRequest<'request>[src]

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

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

impl<'request> TryFrom<CibouletteRequest<'request>> for CibouletteUpdateRequest<'request>[src]

type Error = CibouletteError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'request> RefUnwindSafe for CibouletteUpdateRequest<'request>

impl<'request> Send for CibouletteUpdateRequest<'request>

impl<'request> Sync for CibouletteUpdateRequest<'request>

impl<'request> Unpin for CibouletteUpdateRequest<'request>

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