pub enum CountMode {
Count(i64),
CountExpr(Box<Expression>),
}
Expand description
Note: A oneof field is inherently optional, whereas individual fields within a oneof cannot be marked as optional. The unset state of count should therefore be checked at the oneof level. Unset is treated as ALL.
Variants§
Count(i64)
the amount of records to return
use -1 to signal that ALL records should be returned
Deprecated: use count_expr
instead
CountExpr(Box<Expression>)
Expression evaluated into a non-negative integer specifying the number of records to return. An expression evaluating to null signals that ALL records should be returned. Evaluating to a negative integer should result in an error. Recommended type for count is int64.
Implementations§
Source§impl CountMode
impl CountMode
Sourcepub fn merge(
field: &mut Option<CountMode>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<CountMode>, 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 CountMode
Auto Trait Implementations§
impl Freeze for CountMode
impl RefUnwindSafe for CountMode
impl Send for CountMode
impl Sync for CountMode
impl Unpin for CountMode
impl UnwindSafe for CountMode
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