[−]Trait askama_iron::Modifier
Allows use of the implemented type as an argument to Set::set.
This allows types to be used for ad-hoc overloading of Set::set to perform complex updates to the parameter of Modifier.
Required methods
Loading content...Implementations on Foreign Types
impl Modifier<Response> for Vec<u8>
[src]
impl Modifier<Response> for File
[src]
impl<'a> Modifier<Response> for &'a [u8]
[src]
impl Modifier<Response> for Mime<Vec<(Attr, Value)>>
[src]
impl<'a, 'b, H> Modifier<Request<'a, 'b>> for Header<H> where
H: Header + HeaderFormat,
[src]
H: Header + HeaderFormat,
impl<H> Modifier<Response> for Header<H> where
H: Header + HeaderFormat,
[src]
H: Header + HeaderFormat,
impl Modifier<Response> for Box<dyn WriteBody + 'static>
[src]
impl Modifier<Response> for PathBuf
[src]
fn modify(self, res: &mut Response)
[src]
Set the body to the contents of the File at this path.
Panics
Panics if there is no file at the passed-in Path.
impl Modifier<Response> for String
[src]
impl Modifier<Response> for RedirectRaw
[src]
impl Modifier<Response> for StatusCode
[src]
impl<'a> Modifier<Response> for &'a str
[src]
impl<'a> Modifier<Response> for &'a Path
[src]
fn modify(self, res: &mut Response)
[src]
Set the body to the contents of the File at this path.
Panics
Panics if there is no file at the passed-in Path.
impl<R> Modifier<Response> for BodyReader<R> where
R: 'static + Read + Send,
[src]
R: 'static + Read + Send,
impl Modifier<Response> for Redirect
[src]
impl<X, M1, M2, M3> Modifier<X> for (M1, M2, M3) where
M1: Modifier<X>,
M2: Modifier<X>,
M3: Modifier<X>,
M1: Modifier<X>,
M2: Modifier<X>,
M3: Modifier<X>,
impl<X, M1, M2> Modifier<X> for (M1, M2) where
M1: Modifier<X>,
M2: Modifier<X>,
M1: Modifier<X>,
M2: Modifier<X>,
impl<X, M1, M2, M3, M4, M5, M6> Modifier<X> for (M1, M2, M3, M4, M5, M6) where
M1: Modifier<X>,
M2: Modifier<X>,
M3: Modifier<X>,
M4: Modifier<X>,
M5: Modifier<X>,
M6: Modifier<X>,
M1: Modifier<X>,
M2: Modifier<X>,
M3: Modifier<X>,
M4: Modifier<X>,
M5: Modifier<X>,
M6: Modifier<X>,
impl<X, M1, M2, M3, M4> Modifier<X> for (M1, M2, M3, M4) where
M1: Modifier<X>,
M2: Modifier<X>,
M3: Modifier<X>,
M4: Modifier<X>,
M1: Modifier<X>,
M2: Modifier<X>,
M3: Modifier<X>,
M4: Modifier<X>,
impl<X, M1> Modifier<X> for (M1,) where
M1: Modifier<X>,
M1: Modifier<X>,
impl<X, M1, M2, M3, M4, M5> Modifier<X> for (M1, M2, M3, M4, M5) where
M1: Modifier<X>,
M2: Modifier<X>,
M3: Modifier<X>,
M4: Modifier<X>,
M5: Modifier<X>,
Loading content...
M1: Modifier<X>,
M2: Modifier<X>,
M3: Modifier<X>,
M4: Modifier<X>,
M5: Modifier<X>,