pub enum FieldType {
SwitchingField(SwitchingField),
ConsistentField(Expression),
}
Variants§
SwitchingField(SwitchingField)
Field that switches output based on which duplicate is being output. Every switching_field should contain the same number of duplicates (so that the output rows are of consistent size and type). If there are not enough switching field definitions to match the other field definitions NULL will be returned to fill the extras.
ConsistentField(Expression)
Field that outputs the same value no matter which duplicate is being output. Equivalent to a switching_field that lists the same expression multiple times.
Implementations§
Source§impl FieldType
impl FieldType
Sourcepub fn merge(
field: &mut Option<FieldType>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<FieldType>, 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 FieldType
Auto Trait Implementations§
impl !Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnwindSafe for FieldType
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