#[repr(i32)]pub enum AggStrategy {
Undefined = 0,
AggPlain = 1,
AggSorted = 2,
AggHashed = 3,
AggMixed = 4,
}
Variants§
Implementations§
Source§impl AggStrategy
impl AggStrategy
Source§impl AggStrategy
impl AggStrategy
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for AggStrategy
impl Clone for AggStrategy
Source§fn clone(&self) -> AggStrategy
fn clone(&self) -> AggStrategy
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 AggStrategy
impl Debug for AggStrategy
Source§impl Default for AggStrategy
impl Default for AggStrategy
Source§fn default() -> AggStrategy
fn default() -> AggStrategy
Returns the “default value” for a type. Read more
Source§impl From<AggStrategy> for i32
impl From<AggStrategy> for i32
Source§fn from(value: AggStrategy) -> i32
fn from(value: AggStrategy) -> i32
Converts to this type from the input type.
Source§impl Hash for AggStrategy
impl Hash for AggStrategy
Source§impl Ord for AggStrategy
impl Ord for AggStrategy
Source§fn cmp(&self, other: &AggStrategy) -> Ordering
fn cmp(&self, other: &AggStrategy) -> 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 AggStrategy
impl PartialEq for AggStrategy
Source§impl PartialOrd for AggStrategy
impl PartialOrd for AggStrategy
Source§impl TryFrom<i32> for AggStrategy
impl TryFrom<i32> for AggStrategy
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<AggStrategy, UnknownEnumValue>
fn try_from(value: i32) -> Result<AggStrategy, UnknownEnumValue>
Performs the conversion.
impl Copy for AggStrategy
impl Eq for AggStrategy
impl StructuralPartialEq for AggStrategy
Auto Trait Implementations§
impl Freeze for AggStrategy
impl RefUnwindSafe for AggStrategy
impl Send for AggStrategy
impl Sync for AggStrategy
impl Unpin for AggStrategy
impl UnwindSafe for AggStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more