Struct maud::PreEscaped
source · [−]Expand description
A wrapper that renders the inner value without escaping.
Tuple Fields
0: T
Implementations
sourceimpl<T: AsRef<str> + Into<String>> PreEscaped<T>
impl<T: AsRef<str> + Into<String>> PreEscaped<T>
sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Converts the inner value to a string.
Trait Implementations
sourceimpl<T: Clone + AsRef<str>> Clone for PreEscaped<T>
impl<T: Clone + AsRef<str>> Clone for PreEscaped<T>
sourcefn clone(&self) -> PreEscaped<T>
fn clone(&self) -> PreEscaped<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl From<PreEscaped<String>> for Response
impl From<PreEscaped<String>> for Response
sourcefn from(markup: PreEscaped<String>) -> Response
fn from(markup: PreEscaped<String>) -> Response
Converts to this type from the input type.
sourceimpl<T: AsRef<str> + Into<String>> From<PreEscaped<T>> for String
impl<T: AsRef<str> + Into<String>> From<PreEscaped<T>> for String
sourcefn from(value: PreEscaped<T>) -> String
fn from(value: PreEscaped<T>) -> String
Converts to this type from the input type.
sourceimpl IntoResponse for PreEscaped<String>
impl IntoResponse for PreEscaped<String>
sourcefn into_response(self) -> Response<BoxBody>
fn into_response(self) -> Response<BoxBody>
Create a response.
sourceimpl<T: AsRef<str>> Render for PreEscaped<T>
impl<T: AsRef<str>> Render for PreEscaped<T>
sourceimpl Responder<'static> for PreEscaped<String>
impl Responder<'static> for PreEscaped<String>
sourceimpl Responder for PreEscaped<String>
impl Responder for PreEscaped<String>
type Body = String
sourcefn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body>
fn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body>
Convert self to
HttpResponse
.sourcefn customize(self) -> CustomizeResponder<Self>
fn customize(self) -> CustomizeResponder<Self>
Wraps responder to allow alteration of its response. Read more
impl<T: Copy + AsRef<str>> Copy for PreEscaped<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for PreEscaped<T>where
T: RefUnwindSafe,
impl<T> Send for PreEscaped<T>where
T: Send,
impl<T> Sync for PreEscaped<T>where
T: Sync,
impl<T> Unpin for PreEscaped<T>where
T: Unpin,
impl<T> UnwindSafe for PreEscaped<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.