Struct rocket::response::content::Xml [−][src]
pub struct Xml<R>(pub R);
Expand description
Override the Content-Type
of the response to
XML
, or
text/xml
.
Delegates the remainder of the response to the wrapped responder.
Tuple Fields
0: R
Trait Implementations
Sets the Content-Type of the response then delegates the remainder of the response to the wrapped responder.
Auto Trait Implementations
impl<R> RefUnwindSafe for Xml<R> where
R: RefUnwindSafe,
impl<R> UnwindSafe for Xml<R> where
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more