pub struct CommPreferences {
pub preferred_format: String,
pub max_message_size: Option<usize>,
pub languages: Vec<String>,
pub echo_sent: bool,
}Expand description
Communication preferences.
Fields§
§preferred_format: StringPreferred message format.
max_message_size: Option<usize>Maximum message size accepted.
languages: Vec<String>Preferred language codes.
echo_sent: boolWhether to echo sent messages.
Trait Implementations§
Source§impl Clone for CommPreferences
impl Clone for CommPreferences
Source§fn clone(&self) -> CommPreferences
fn clone(&self) -> CommPreferences
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommPreferences
impl Debug for CommPreferences
Source§impl Default for CommPreferences
impl Default for CommPreferences
Source§fn default() -> CommPreferences
fn default() -> CommPreferences
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommPreferences
impl<'de> Deserialize<'de> for CommPreferences
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 CommPreferences
impl RefUnwindSafe for CommPreferences
impl Send for CommPreferences
impl Sync for CommPreferences
impl Unpin for CommPreferences
impl UnsafeUnpin for CommPreferences
impl UnwindSafe for CommPreferences
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