struct PageInbox<'a> {
page_data: PageData<'a>,
message: String,
sender_id: u32,
sender_name: String,
}
Expand description
Page data: inbox.html
Fields§
§page_data: PageData<'a>
§message: String
§sender_id: u32
§sender_name: String
Trait Implementations§
Source§impl<'a> Display for PageInbox<'a>
impl<'a> Display for PageInbox<'a>
Please be aware of the rendering performance notice in the [Template
][askama::Template] trait.
Source§impl<'a> FastWritable for PageInbox<'a>
impl<'a> FastWritable for PageInbox<'a>
Source§fn write_into<AskamaW>(&self, dest: &mut AskamaW) -> Result<()>
fn write_into<AskamaW>(&self, dest: &mut AskamaW) -> Result<()>
Used internally by askama to speed up writing some types.
Source§impl<'a> Template for PageInbox<'a>
impl<'a> Template for PageInbox<'a>
Source§const SIZE_HINT: usize = 3_630usize
const SIZE_HINT: usize = 3_630usize
Provides a rough estimate of the expanded length of the rendered template. Larger
values result in higher memory usage but fewer reallocations. Smaller values result in the
opposite. This value only affects
render
. It does not take effect when calling
render_into
, write_into
, the fmt::Display
implementation, or the blanket
ToString::to_string
implementation.Source§fn render_into_with_values<AskamaW>(
&self,
__askama_writer: &mut AskamaW,
__askama_values: &dyn Values,
) -> Result<()>
fn render_into_with_values<AskamaW>( &self, __askama_writer: &mut AskamaW, __askama_values: &dyn Values, ) -> Result<()>
Renders the template to the given
writer
fmt buffer with provided [Values
].§fn render(&self) -> Result<String, Error>
fn render(&self) -> Result<String, Error>
Helper method which allocates a new
String
and renders into it.§fn render_with_values(&self, values: &dyn Values) -> Result<String, Error>
fn render_with_values(&self, values: &dyn Values) -> Result<String, Error>
Helper method which allocates a new
String
and renders into it with provided [Values
].§fn render_into<W>(&self, writer: &mut W) -> Result<(), Error>
fn render_into<W>(&self, writer: &mut W) -> Result<(), Error>
Renders the template to the given
writer
fmt buffer.Auto Trait Implementations§
impl<'a> Freeze for PageInbox<'a>
impl<'a> RefUnwindSafe for PageInbox<'a>
impl<'a> Send for PageInbox<'a>
impl<'a> Sync for PageInbox<'a>
impl<'a> Unpin for PageInbox<'a>
impl<'a> UnwindSafe for PageInbox<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DynTemplate for Twhere
T: Template,
impl<T> DynTemplate for Twhere
T: Template,
§fn dyn_render(&self) -> Result<String, Error>
fn dyn_render(&self) -> Result<String, Error>
Helper method which allocates a new
String
and renders into it.§fn dyn_render_with_values(&self, values: &dyn Values) -> Result<String, Error>
fn dyn_render_with_values(&self, values: &dyn Values) -> Result<String, Error>
Helper method which allocates a new
String
and renders into it with provided [Values
].§fn dyn_render_into(&self, writer: &mut dyn Write) -> Result<(), Error>
fn dyn_render_into(&self, writer: &mut dyn Write) -> Result<(), Error>
Renders the template to the given
writer
fmt buffer.§fn dyn_render_into_with_values(
&self,
writer: &mut dyn Write,
values: &dyn Values,
) -> Result<(), Error>
fn dyn_render_into_with_values( &self, writer: &mut dyn Write, values: &dyn Values, ) -> Result<(), Error>
Renders the template to the given
writer
fmt buffer with provided [Values
].§fn dyn_write_into(&self, writer: &mut dyn Write) -> Result<(), Error>
fn dyn_write_into(&self, writer: &mut dyn Write) -> Result<(), Error>
Renders the template to the given
writer
io buffer.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP