pub struct TestMessage {Show 19 fields
pub string1: String,
pub string2: String,
pub string3: String,
pub struct1: Option<TestStruct>,
pub date1: Option<Timestamp>,
pub date2: Option<Timestamp>,
pub date3: Option<Timestamp>,
pub uint1: u32,
pub uint2: u32,
pub uint3: u32,
pub int1: i32,
pub int2: i32,
pub int3: i32,
pub ref1: Option<Reference>,
pub ref2: Option<Reference>,
pub grouped1: String,
pub grouped2: String,
pub map1: HashMap<String, String>,
pub fields: Option<Fields>,
}Fields§
§string1: String§string2: String§string3: String§struct1: Option<TestStruct>§date1: Option<Timestamp>§date2: Option<Timestamp>§date3: Option<Timestamp>§uint1: u32§uint2: u32§uint3: u32§int1: i32§int2: i32§int3: i32§ref1: Option<Reference>§ref2: Option<Reference>§grouped1: String§grouped2: String§map1: HashMap<String, String>§fields: Option<Fields>Trait Implementations§
Source§impl Clone for TestMessage
impl Clone for TestMessage
Source§fn clone(&self) -> TestMessage
fn clone(&self) -> TestMessage
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 TestMessage
impl Debug for TestMessage
Source§impl Default for TestMessage
impl Default for TestMessage
Source§impl Message for TestMessage
impl Message for TestMessage
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl NamedMessage for TestMessage
impl NamedMessage for TestMessage
Source§impl PartialEq for TestMessage
impl PartialEq for TestMessage
Source§fn eq(&self, other: &TestMessage) -> bool
fn eq(&self, other: &TestMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TestMessage
Auto Trait Implementations§
impl Freeze for TestMessage
impl RefUnwindSafe for TestMessage
impl Send for TestMessage
impl Sync for TestMessage
impl Unpin for TestMessage
impl UnsafeUnpin for TestMessage
impl UnwindSafe for TestMessage
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