pub struct DummyFields {Show 14 fields
pub field_uint32: Option<u32>,
pub field_int32: Option<i32>,
pub field_uint64: Option<u64>,
pub field_int64: Option<i64>,
pub field_fixed64: Option<u64>,
pub field_sfixed64: Option<i64>,
pub field_fixed32: Option<u32>,
pub field_sfixed32: Option<i32>,
pub field_double: Option<f64>,
pub field_float: Option<f32>,
pub field_sint64: Option<i64>,
pub field_sint32: Option<i32>,
pub field_string: Option<String>,
pub field_bytes: Option<Vec<u8>>,
}Fields§
§field_uint32: Option<u32>§field_int32: Option<i32>§field_uint64: Option<u64>§field_int64: Option<i64>§field_fixed64: Option<u64>§field_sfixed64: Option<i64>§field_fixed32: Option<u32>§field_sfixed32: Option<i32>§field_double: Option<f64>§field_float: Option<f32>§field_sint64: Option<i64>§field_sint32: Option<i32>§field_string: Option<String>§field_bytes: Option<Vec<u8>>Implementations§
Source§impl DummyFields
impl DummyFields
Sourcepub fn field_uint32(&self) -> u32
pub fn field_uint32(&self) -> u32
Returns the value of field_uint32, or the default value if field_uint32 is unset.
Sourcepub fn field_int32(&self) -> i32
pub fn field_int32(&self) -> i32
Returns the value of field_int32, or the default value if field_int32 is unset.
Sourcepub fn field_uint64(&self) -> u64
pub fn field_uint64(&self) -> u64
Returns the value of field_uint64, or the default value if field_uint64 is unset.
Sourcepub fn field_int64(&self) -> i64
pub fn field_int64(&self) -> i64
Returns the value of field_int64, or the default value if field_int64 is unset.
Sourcepub fn field_fixed64(&self) -> u64
pub fn field_fixed64(&self) -> u64
Returns the value of field_fixed64, or the default value if field_fixed64 is unset.
Sourcepub fn field_sfixed64(&self) -> i64
pub fn field_sfixed64(&self) -> i64
Returns the value of field_sfixed64, or the default value if field_sfixed64 is unset.
Sourcepub fn field_fixed32(&self) -> u32
pub fn field_fixed32(&self) -> u32
Returns the value of field_fixed32, or the default value if field_fixed32 is unset.
Sourcepub fn field_sfixed32(&self) -> i32
pub fn field_sfixed32(&self) -> i32
Returns the value of field_sfixed32, or the default value if field_sfixed32 is unset.
Sourcepub fn field_double(&self) -> f64
pub fn field_double(&self) -> f64
Returns the value of field_double, or the default value if field_double is unset.
Sourcepub fn field_float(&self) -> f32
pub fn field_float(&self) -> f32
Returns the value of field_float, or the default value if field_float is unset.
Sourcepub fn field_sint64(&self) -> i64
pub fn field_sint64(&self) -> i64
Returns the value of field_sint64, or the default value if field_sint64 is unset.
Sourcepub fn field_sint32(&self) -> i32
pub fn field_sint32(&self) -> i32
Returns the value of field_sint32, or the default value if field_sint32 is unset.
Sourcepub fn field_string(&self) -> &str
pub fn field_string(&self) -> &str
Returns the value of field_string, or the default value if field_string is unset.
Sourcepub fn field_bytes(&self) -> &[u8] ⓘ
pub fn field_bytes(&self) -> &[u8] ⓘ
Returns the value of field_bytes, or the default value if field_bytes is unset.
Trait Implementations§
Source§impl Clone for DummyFields
impl Clone for DummyFields
Source§fn clone(&self) -> DummyFields
fn clone(&self) -> DummyFields
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DummyFields
impl Debug for DummyFields
Source§impl Default for DummyFields
impl Default for DummyFields
Source§impl Message for DummyFields
impl Message for DummyFields
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
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,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self.