#[repr(i32)]pub enum CsvQuoteStyle {
Necessary = 0,
Always = 1,
NonNumeric = 2,
Never = 3,
}Variants§
Implementations§
Source§impl CsvQuoteStyle
impl CsvQuoteStyle
Source§impl CsvQuoteStyle
impl CsvQuoteStyle
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<CsvQuoteStyle>
pub fn from_str_name(value: &str) -> Option<CsvQuoteStyle>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for CsvQuoteStyle
impl Clone for CsvQuoteStyle
Source§fn clone(&self) -> CsvQuoteStyle
fn clone(&self) -> CsvQuoteStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CsvQuoteStyle
Source§impl Debug for CsvQuoteStyle
impl Debug for CsvQuoteStyle
Source§impl Default for CsvQuoteStyle
impl Default for CsvQuoteStyle
Source§fn default() -> CsvQuoteStyle
fn default() -> CsvQuoteStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CsvQuoteStyle
impl<'de> Deserialize<'de> for CsvQuoteStyle
Source§fn deserialize<D>(
deserializer: D,
) -> Result<CsvQuoteStyle, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<CsvQuoteStyle, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CsvQuoteStyle
Source§impl From<CsvQuoteStyle> for CsvQuoteStyle
impl From<CsvQuoteStyle> for CsvQuoteStyle
Source§fn from(value: CsvQuoteStyle) -> CsvQuoteStyle
fn from(value: CsvQuoteStyle) -> CsvQuoteStyle
Converts to this type from the input type.
Source§impl From<QuoteStyle> for CsvQuoteStyle
impl From<QuoteStyle> for CsvQuoteStyle
Source§fn from(value: QuoteStyle) -> CsvQuoteStyle
fn from(value: QuoteStyle) -> CsvQuoteStyle
Converts to this type from the input type.
Source§impl Hash for CsvQuoteStyle
impl Hash for CsvQuoteStyle
Source§impl Ord for CsvQuoteStyle
impl Ord for CsvQuoteStyle
Source§fn cmp(&self, other: &CsvQuoteStyle) -> Ordering
fn cmp(&self, other: &CsvQuoteStyle) -> Ordering
1.21.0 (const: unstable) · 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 CsvQuoteStyle
impl PartialEq for CsvQuoteStyle
Source§fn eq(&self, other: &CsvQuoteStyle) -> bool
fn eq(&self, other: &CsvQuoteStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CsvQuoteStyle
impl PartialOrd for CsvQuoteStyle
Source§impl Serialize for CsvQuoteStyle
impl Serialize for CsvQuoteStyle
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CsvQuoteStyle
Source§impl TryFrom<i32> for CsvQuoteStyle
impl TryFrom<i32> for CsvQuoteStyle
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<CsvQuoteStyle, UnknownEnumValue>
fn try_from(value: i32) -> Result<CsvQuoteStyle, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CsvQuoteStyle
impl RefUnwindSafe for CsvQuoteStyle
impl Send for CsvQuoteStyle
impl Sync for CsvQuoteStyle
impl Unpin for CsvQuoteStyle
impl UnsafeUnpin for CsvQuoteStyle
impl UnwindSafe for CsvQuoteStyle
Blanket Implementations§
impl<T> Allocation for T
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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