pub struct ContextMessageStoreValue {
pub messages: HashMap<String, ContextMessage>,
}Expand description
Durable map of context messages keyed by message key.
Fields§
§messages: HashMap<String, ContextMessage>Implementations§
Source§impl ContextMessageStoreValue
impl ContextMessageStoreValue
Sourcepub fn sorted_messages(&self) -> Vec<&ContextMessage>
pub fn sorted_messages(&self) -> Vec<&ContextMessage>
Return all messages sorted by (target, priority, key) for deterministic ordering.
Trait Implementations§
Source§impl Clone for ContextMessageStoreValue
impl Clone for ContextMessageStoreValue
Source§fn clone(&self) -> ContextMessageStoreValue
fn clone(&self) -> ContextMessageStoreValue
Returns a duplicate 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 ContextMessageStoreValue
impl Debug for ContextMessageStoreValue
Source§impl Default for ContextMessageStoreValue
impl Default for ContextMessageStoreValue
Source§fn default() -> ContextMessageStoreValue
fn default() -> ContextMessageStoreValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextMessageStoreValue
impl<'de> Deserialize<'de> for ContextMessageStoreValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContextMessageStoreValue
impl PartialEq for ContextMessageStoreValue
Source§impl Serialize for ContextMessageStoreValue
impl Serialize for ContextMessageStoreValue
impl StructuralPartialEq for ContextMessageStoreValue
Auto Trait Implementations§
impl Freeze for ContextMessageStoreValue
impl RefUnwindSafe for ContextMessageStoreValue
impl Send for ContextMessageStoreValue
impl Sync for ContextMessageStoreValue
impl Unpin for ContextMessageStoreValue
impl UnsafeUnpin for ContextMessageStoreValue
impl UnwindSafe for ContextMessageStoreValue
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