Struct fluent_static_codegen::bundle::MessageBundle
source · pub struct MessageBundle {
pub name: String,
pub path: PathBuf,
pub langs: Vec<LanguageBundle>,
}
Fields§
§name: String
§path: PathBuf
§langs: Vec<LanguageBundle>
Implementations§
source§impl MessageBundle
impl MessageBundle
pub fn create( name: &str, path: impl AsRef<Path>, language_resource: Vec<(String, String)>, ) -> Result<Self, Error>
pub fn get_language_bundle(&self, lang: &str) -> Option<&LanguageBundle>
pub fn name(&self) -> &str
pub fn path(&self) -> &Path
pub fn name_ident(&self) -> Ident
pub fn language_literals(&self) -> Vec<Literal>
Trait Implementations§
source§impl Clone for MessageBundle
impl Clone for MessageBundle
source§fn clone(&self) -> MessageBundle
fn clone(&self) -> MessageBundle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MessageBundle
impl Debug for MessageBundle
source§impl PartialEq for MessageBundle
impl PartialEq for MessageBundle
impl Eq for MessageBundle
impl StructuralPartialEq for MessageBundle
Auto Trait Implementations§
impl Freeze for MessageBundle
impl RefUnwindSafe for MessageBundle
impl Send for MessageBundle
impl Sync for MessageBundle
impl Unpin for MessageBundle
impl UnwindSafe for MessageBundle
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)