pub struct RoutingHints {
pub preferred_endpoints: Vec<String>,
pub priority: Priority,
pub require_encryption: bool,
pub metadata: HashMap<String, Value>,
}Expand description
Routing hints for message delivery
Fields§
§preferred_endpoints: Vec<String>Preferred delivery endpoints
priority: PriorityPriority routing (high, normal, low)
require_encryption: boolWhether to use encryption
metadata: HashMap<String, Value>Custom routing metadata
Trait Implementations§
Source§impl Clone for RoutingHints
impl Clone for RoutingHints
Source§fn clone(&self) -> RoutingHints
fn clone(&self) -> RoutingHints
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 RoutingHints
impl Debug for RoutingHints
Source§impl Default for RoutingHints
impl Default for RoutingHints
Source§fn default() -> RoutingHints
fn default() -> RoutingHints
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RoutingHints
impl<'de> Deserialize<'de> for RoutingHints
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
Auto Trait Implementations§
impl Freeze for RoutingHints
impl RefUnwindSafe for RoutingHints
impl Send for RoutingHints
impl Sync for RoutingHints
impl Unpin for RoutingHints
impl UnwindSafe for RoutingHints
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