pub struct MessageFields {
pub call1: Option<String>,
pub call2: Option<String>,
pub grid: Option<String>,
pub report: Option<i32>,
pub free_text: Option<String>,
}Expand description
Generic input to MessageCodec::pack — protocol-specific codecs accept
the subset of fields they understand and return None for unsupported
combinations.
Fields§
§call1: Option<String>§call2: Option<String>§grid: Option<String>§report: Option<i32>§free_text: Option<String>Trait Implementations§
Source§impl Clone for MessageFields
impl Clone for MessageFields
Source§fn clone(&self) -> MessageFields
fn clone(&self) -> MessageFields
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 MessageFields
impl Debug for MessageFields
Source§impl Default for MessageFields
impl Default for MessageFields
Source§fn default() -> MessageFields
fn default() -> MessageFields
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MessageFields
impl RefUnwindSafe for MessageFields
impl Send for MessageFields
impl Sync for MessageFields
impl Unpin for MessageFields
impl UnsafeUnpin for MessageFields
impl UnwindSafe for MessageFields
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more