Struct protos::traits::VariableTypeInfo
source · pub struct VariableTypeInfo {
pub type_: VariableType,
pub default: Option<Vec<u8>>,
}
Expand description
Struct contains information about a variable type
Fields§
§type_: VariableType
The variable type
default: Option<Vec<u8>>
Raw-bytes representation of the default value of the variable type (optional)
Trait Implementations§
source§impl Clone for VariableTypeInfo
impl Clone for VariableTypeInfo
source§fn clone(&self) -> VariableTypeInfo
fn clone(&self) -> VariableTypeInfo
Returns a copy 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 VariableTypeInfo
impl Debug for VariableTypeInfo
source§impl Decode for VariableTypeInfo
impl Decode for VariableTypeInfo
source§impl Encode for VariableTypeInfo
impl Encode for VariableTypeInfo
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl PartialEq<VariableTypeInfo> for VariableTypeInfo
impl PartialEq<VariableTypeInfo> for VariableTypeInfo
source§fn eq(&self, other: &VariableTypeInfo) -> bool
fn eq(&self, other: &VariableTypeInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.