pub struct SourceMessage { /* private fields */ }Expand description
Immutable, catalog-authorized source message awaiting argument binding.
Implementations§
Source§impl SourceMessage
impl SourceMessage
Sourcepub fn argument_schemas(&self) -> &BTreeMap<String, ArgumentSchema>
pub fn argument_schemas(&self) -> &BTreeMap<String, ArgumentSchema>
Returns the authorized placeholder schemas.
Sourcepub fn source_ref(&self) -> &SourceMessageRef
pub fn source_ref(&self) -> &SourceMessageRef
Returns the canonical source-message reference.
Sourcepub fn bind(
&self,
arguments: BTreeMap<String, Argument>,
) -> Result<LocalizedString, TroxValueError>
pub fn bind( &self, arguments: BTreeMap<String, Argument>, ) -> Result<LocalizedString, TroxValueError>
Binds an exact argument set and returns a normal localized value.
Trait Implementations§
Source§impl Clone for SourceMessage
impl Clone for SourceMessage
Auto Trait Implementations§
impl Freeze for SourceMessage
impl RefUnwindSafe for SourceMessage
impl Send for SourceMessage
impl Sync for SourceMessage
impl Unpin for SourceMessage
impl UnsafeUnpin for SourceMessage
impl UnwindSafe for SourceMessage
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