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§fn default() -> DummyFields
fn default() -> DummyFields
Source§impl Message for DummyFields
impl Message for DummyFields
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for DummyFields
impl PartialEq for DummyFields
impl StructuralPartialEq for DummyFields
Auto Trait Implementations§
impl Freeze for DummyFields
impl RefUnwindSafe for DummyFields
impl Send for DummyFields
impl Sync for DummyFields
impl Unpin for DummyFields
impl UnwindSafe for DummyFields
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].