#[repr(transparent)]pub struct MessageParamType(pub i8);Tuple Fields§
§0: i8Implementations§
Source§impl MessageParamType
impl MessageParamType
pub const StringParam: Self
pub const NumberParam: Self
pub const DateParam: Self
pub const CurrencyParam: Self
pub const PluralParam: Self
pub const SelectParam: Self
pub const ENUM_MIN: i8 = 0
pub const ENUM_MAX: i8 = 5
pub const ENUM_VALUES: &'static [Self]
Sourcepub fn variant_name(self) -> Option<&'static str>
pub fn variant_name(self) -> Option<&'static str>
Returns the variant’s name or “” if unknown.
Trait Implementations§
Source§impl Clone for MessageParamType
impl Clone for MessageParamType
Source§fn clone(&self) -> MessageParamType
fn clone(&self) -> MessageParamType
Returns a duplicate 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 MessageParamType
impl Debug for MessageParamType
Source§impl Default for MessageParamType
impl Default for MessageParamType
Source§fn default() -> MessageParamType
fn default() -> MessageParamType
Returns the “default value” for a type. Read more
Source§impl EndianScalar for MessageParamType
impl EndianScalar for MessageParamType
Source§impl<'a> Follow<'a> for MessageParamType
impl<'a> Follow<'a> for MessageParamType
Source§impl Hash for MessageParamType
impl Hash for MessageParamType
Source§impl Ord for MessageParamType
impl Ord for MessageParamType
Source§fn cmp(&self, other: &MessageParamType) -> Ordering
fn cmp(&self, other: &MessageParamType) -> 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 PartialEq for MessageParamType
impl PartialEq for MessageParamType
Source§impl PartialOrd for MessageParamType
impl PartialOrd for MessageParamType
Source§impl Push for MessageParamType
impl Push for MessageParamType
Source§impl<'a> Verifiable for MessageParamType
impl<'a> Verifiable for MessageParamType
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl Copy for MessageParamType
impl Eq for MessageParamType
impl SimpleToVerifyInSlice for MessageParamType
impl StructuralPartialEq for MessageParamType
Auto Trait Implementations§
impl Freeze for MessageParamType
impl RefUnwindSafe for MessageParamType
impl Send for MessageParamType
impl Sync for MessageParamType
impl Unpin for MessageParamType
impl UnsafeUnpin for MessageParamType
impl UnwindSafe for MessageParamType
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