[][src]Struct swish_swish::Swish

pub struct Swish {
    pub router: Router,
    pub config: Config,
    pub validater: Validater,
}

Fields

router: Routerconfig: Configvalidater: Validater

Implementations

impl Swish[src]

pub fn new() -> Swish[src]

pub fn get(&mut self, path: &str, handler: fn(_: &Request) -> Box<dyn Body>)[src]

pub fn post(&mut self, path: &str, handler: fn(_: &Request) -> Box<dyn Body>)[src]

pub fn set_cors_as(&mut self, cors: Cors)[src]

pub fn set_address(&mut self, address: &str)[src]

pub fn bish(&mut self)[src]

Auto Trait Implementations

impl RefUnwindSafe for Swish

impl Send for Swish

impl Sync for Swish

impl Unpin for Swish

impl UnwindSafe for Swish

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, 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.