@@ -22,7 +22,7 @@ use crate::resource::FluentResource;
22
22
use crate :: types:: FluentValue ;
23
23
24
24
#[ derive( Debug , PartialEq ) ]
25
- pub struct Message < ' m > {
25
+ pub struct FluentMessage < ' m > {
26
26
pub value : Option < & ' m ast:: Pattern < ' m > > ,
27
27
pub attributes : HashMap < & ' m str , & ' m ast:: Pattern < ' m > > ,
28
28
}
@@ -65,7 +65,7 @@ pub struct Message<'m> {
65
65
/// Next, call [`add_resource`] one or more times, supplying translations in the FTL syntax. The
66
66
/// `FluentBundle` instance is now ready to be used for localization.
67
67
///
68
- /// To format a translation, call [`get_message`] to retrieve a [`Message `],
68
+ /// To format a translation, call [`get_message`] to retrieve a [`FluentMessage `],
69
69
/// and then call [`format_pattern`] on the message value or attribute in order to
70
70
/// retrieve the translated string.
71
71
///
@@ -84,7 +84,7 @@ pub struct Message<'m> {
84
84
///
85
85
/// [`add_resource`]: ./struct.FluentBundle.html#method.add_resource
86
86
/// [`FluentBundle::new`]: ./struct.FluentBundle.html#method.new
87
- /// [`Message `]: ./struct.Message .html
87
+ /// [`FluentMessage `]: ./struct.FluentMessage .html
88
88
/// [`get_message`]: ./struct.FluentBundle.html#method.get_message
89
89
/// [`format_pattern`]: ./struct.FluentBundle.html#method.format_pattern
90
90
/// [`add_resource`]: ./struct.FluentBundle.html#method.add_resource
@@ -260,7 +260,7 @@ impl<R> FluentBundle<R> {
260
260
self . get_entry_message ( id) . is_some ( )
261
261
}
262
262
263
- pub fn get_message ( & self , id : & str ) -> Option < Message >
263
+ pub fn get_message ( & self , id : & str ) -> Option < FluentMessage >
264
264
where
265
265
R : Borrow < FluentResource > ,
266
266
{
@@ -275,7 +275,7 @@ impl<R> FluentBundle<R> {
275
275
for attr in message. attributes . iter ( ) {
276
276
attributes. insert ( attr. id . name , & attr. value ) ;
277
277
}
278
- Some ( Message { value, attributes } )
278
+ Some ( FluentMessage { value, attributes } )
279
279
}
280
280
281
281
pub fn format_pattern < ' bundle > (
0 commit comments