Struct message_format::Message
[−]
[src]
pub struct Message {
// some fields omitted
}A message that has been localized and can be formatted in a locale-aware manner.
While a Message can be created directly from MessagePart
components, it is easiest to create it from icu::parse.
Methods
impl Message
fn new(parts: Vec<Box<MessagePart>>) -> Self
Construct a message from constituent parts.
fn write_message<'f>(&self, ctx: &Context, stream: &mut Write, args: Option<&Args<'f>>) -> Result
Write a message to a stream.
This shouldn't be called directly in the usual case.
Use Context::write or Context::format instead.