Enum protoql::KeyDataType
source · pub enum KeyDataType {
unit,
fixed32,
fixed64,
sfixed32,
sfixed64,
string,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for KeyDataType
impl Clone for KeyDataType
source§fn clone(&self) -> KeyDataType
fn clone(&self) -> KeyDataType
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 KeyDataType
impl Debug for KeyDataType
source§impl Default for KeyDataType
impl Default for KeyDataType
source§fn default() -> KeyDataType
fn default() -> KeyDataType
Returns the “default value” for a type. Read more
source§impl<'prototk> FieldPackHelper<'prototk, message<KeyDataType>> for KeyDataType
impl<'prototk> FieldPackHelper<'prototk, message<KeyDataType>> for KeyDataType
source§fn field_pack_sz(&self, tag: &Tag) -> usize
fn field_pack_sz(&self, tag: &Tag) -> usize
The size of encoding self with tag.
source§fn field_pack(&self, tag: &Tag, out: &mut [u8])
fn field_pack(&self, tag: &Tag, out: &mut [u8])
Pack the tag into the output buffer.
source§impl<'prototk> FieldUnpackHelper<'prototk, message<KeyDataType>> for KeyDataType
impl<'prototk> FieldUnpackHelper<'prototk, message<KeyDataType>> for KeyDataType
source§fn merge_field(&mut self, proto: message<KeyDataType>)
fn merge_field(&mut self, proto: message<KeyDataType>)
Merge the proto into self.
source§impl From<KeyDataType> for DataType
impl From<KeyDataType> for DataType
source§fn from(ty: KeyDataType) -> Self
fn from(ty: KeyDataType) -> Self
Converts to this type from the input type.
source§impl From<message<KeyDataType>> for KeyDataType
impl From<message<KeyDataType>> for KeyDataType
source§fn from(proto: message<KeyDataType>) -> KeyDataType
fn from(proto: message<KeyDataType>) -> KeyDataType
Converts to this type from the input type.
source§impl Hash for KeyDataType
impl Hash for KeyDataType
source§impl Ord for KeyDataType
impl Ord for KeyDataType
source§fn cmp(&self, other: &KeyDataType) -> Ordering
fn cmp(&self, other: &KeyDataType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl Packable for KeyDataType
impl Packable for KeyDataType
source§fn pack_sz(&self) -> usize
fn pack_sz(&self) -> usize
pack_sz
returns the number of bytes required to serialize the Packable object.source§fn pack(&self, buf: &mut [u8])
fn pack(&self, buf: &mut [u8])
pack
fills in the buffer out
with the packed binary representation of the Packable
object. The implementor is responsible to ensure that out
is exactly pack_sz()
bytes
and implementations are encouraged to assert this. Read moresource§fn stream<W>(&self, writer: &mut W) -> Result<usize, Error>where
W: Write,
fn stream<W>(&self, writer: &mut W) -> Result<usize, Error>where
W: Write,
stream
writes the object to the provided writer using the same representation that would
be used in a call to pack
. The implementor is responsible for making sure that the
number of bytes written is exactly equal to the number of required bytes. Read moresource§impl PartialEq for KeyDataType
impl PartialEq for KeyDataType
source§fn eq(&self, other: &KeyDataType) -> bool
fn eq(&self, other: &KeyDataType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for KeyDataType
impl PartialOrd for KeyDataType
source§fn partial_cmp(&self, other: &KeyDataType) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyDataType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'prototk> Unpackable<'prototk> for KeyDataType
impl<'prototk> Unpackable<'prototk> for KeyDataType
impl Copy for KeyDataType
impl Eq for KeyDataType
impl<'prototk> Message<'prototk> for KeyDataType
impl StructuralPartialEq for KeyDataType
Auto Trait Implementations§
impl RefUnwindSafe for KeyDataType
impl Send for KeyDataType
impl Sync for KeyDataType
impl Unpin for KeyDataType
impl UnwindSafe for KeyDataType
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