Struct ciboulette::CibouletteRequestBuilder[][src]

pub struct CibouletteRequestBuilder<'request> { /* fields omitted */ }

Implementations

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

pub fn req_url(&self) -> &&'request Url[src]

The request URL

pub fn intention(&self) -> &CibouletteIntention[src]

The method used

pub fn body(&self) -> &&'request Option<&'request str>[src]

The body, if any

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

pub fn new(
    intention: CibouletteIntention,
    req_url: &'request Url,
    body: &'request Option<&'request str>
) -> Self
[src]

Create a new inbound requests from parts

pub fn build(
    self,
    bag: &CibouletteStore
) -> Result<CibouletteRequest<'request>, CibouletteError>
[src]

Build the inbound request, checking its validity and parsing the inner body

Once built, this request can be transformed into the definitive request depending on its intention.

Trait Implementations

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

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

Auto Trait Implementations

impl<'request> RefUnwindSafe for CibouletteRequestBuilder<'request>

impl<'request> Send for CibouletteRequestBuilder<'request>

impl<'request> Sync for CibouletteRequestBuilder<'request>

impl<'request> Unpin for CibouletteRequestBuilder<'request>

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