pub enum Parameter {
Null(Empty),
DataType(Type),
Boolean(bool),
Integer(i64),
Enum(String),
String(String),
}
Variants§
Null(Empty)
Explicitly null/unspecified parameter, to select the default value (if any).
DataType(Type)
Data type parameters, like the i32 in LIST
Boolean(bool)
Value parameters, like the 10 in VARCHAR<10>.
Integer(i64)
Enum(String)
String(String)
Implementations§
Source§impl Parameter
impl Parameter
Sourcepub fn merge(
field: &mut Option<Parameter>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Parameter>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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