Enum perspective_client::proto::ColumnType
source · #[repr(i32)]pub enum ColumnType {
String = 0,
Date = 1,
Datetime = 2,
Integer = 3,
Float = 4,
Boolean = 5,
}Expand description
View types
Variants§
Implementations§
source§impl ColumnType
impl ColumnType
pub fn aggregates_iter(&self) -> Box<dyn Iterator<Item = Aggregate>>
pub const fn default_aggregate(&self) -> Aggregate
source§impl ColumnType
impl ColumnType
pub fn to_capitalized(&self) -> String
source§impl ColumnType
impl ColumnType
source§impl ColumnType
impl ColumnType
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 ColumnType
impl Clone for ColumnType
source§fn clone(&self) -> ColumnType
fn clone(&self) -> ColumnType
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 ColumnType
impl Debug for ColumnType
source§impl Default for ColumnType
impl Default for ColumnType
source§fn default() -> ColumnType
fn default() -> ColumnType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ColumnType
impl<'de> Deserialize<'de> for ColumnType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ColumnType
impl Display for ColumnType
source§impl From<ColumnType> for i32
impl From<ColumnType> for i32
source§fn from(value: ColumnType) -> i32
fn from(value: ColumnType) -> i32
Converts to this type from the input type.
source§impl FromStr for ColumnType
impl FromStr for ColumnType
source§impl Hash for ColumnType
impl Hash for ColumnType
source§impl Ord for ColumnType
impl Ord for ColumnType
source§fn cmp(&self, other: &ColumnType) -> Ordering
fn cmp(&self, other: &ColumnType) -> 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 ColumnType
impl PartialEq for ColumnType
source§impl PartialOrd for ColumnType
impl PartialOrd for ColumnType
source§impl Serialize for ColumnType
impl Serialize for ColumnType
source§impl TryFrom<&str> for ColumnType
impl TryFrom<&str> for ColumnType
source§impl TryFrom<i32> for ColumnType
impl TryFrom<i32> for ColumnType
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<ColumnType, DecodeError>
fn try_from(value: i32) -> Result<ColumnType, DecodeError>
Performs the conversion.
impl Copy for ColumnType
impl Eq for ColumnType
impl StructuralPartialEq for ColumnType
Auto Trait Implementations§
impl Freeze for ColumnType
impl RefUnwindSafe for ColumnType
impl Send for ColumnType
impl Sync for ColumnType
impl Unpin for ColumnType
impl UnwindSafe for ColumnType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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