Struct rocket::response::content::Xml [−][src]
pub struct Xml<R>(pub R);
Override the Content-Type of the response to
XML
, or
text/xml
.
Delagates the remainder of the response to the wrapped responder.
Trait Implementations
impl<R: Debug> Debug for Xml<R>[src]
impl<R: Debug> Debug for Xml<R>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<R: Clone> Clone for Xml<R>[src]
impl<R: Clone> Clone for Xml<R>fn clone(&self) -> Xml<R>[src]
fn clone(&self) -> Xml<R>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<R: PartialEq> PartialEq for Xml<R>[src]
impl<R: PartialEq> PartialEq for Xml<R>fn eq(&self, other: &Xml<R>) -> bool[src]
fn eq(&self, other: &Xml<R>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Xml<R>) -> bool[src]
fn ne(&self, other: &Xml<R>) -> boolThis method tests for !=.
impl<'r, R: Responder<'r>> Responder<'r> for Xml<R>[src]
impl<'r, R: Responder<'r>> Responder<'r> for Xml<R>Sets the Content-Type of the response then delegates the remainder of the response to the wrapped responder.