#[repr(i32)]pub enum XdbcDataType {
Show 24 variants
XdbcUnknownType = 0,
XdbcChar = 1,
XdbcNumeric = 2,
XdbcDecimal = 3,
XdbcInteger = 4,
XdbcSmallint = 5,
XdbcFloat = 6,
XdbcReal = 7,
XdbcDouble = 8,
XdbcDatetime = 9,
XdbcInterval = 10,
XdbcVarchar = 12,
XdbcDate = 91,
XdbcTime = 92,
XdbcTimestamp = 93,
XdbcLongvarchar = -1,
XdbcBinary = -2,
XdbcVarbinary = -3,
XdbcLongvarbinary = -4,
XdbcBigint = -5,
XdbcTinyint = -6,
XdbcBit = -7,
XdbcWchar = -8,
XdbcWvarchar = -9,
}
Expand description
The JDBC/ODBC-defined type of any object. All the values here are the same as in the JDBC and ODBC specs.
Variants§
XdbcUnknownType = 0
XdbcChar = 1
XdbcNumeric = 2
XdbcDecimal = 3
XdbcInteger = 4
XdbcSmallint = 5
XdbcFloat = 6
XdbcReal = 7
XdbcDouble = 8
XdbcDatetime = 9
XdbcInterval = 10
XdbcVarchar = 12
XdbcDate = 91
XdbcTime = 92
XdbcTimestamp = 93
XdbcLongvarchar = -1
XdbcBinary = -2
XdbcVarbinary = -3
XdbcLongvarbinary = -4
XdbcBigint = -5
XdbcTinyint = -6
XdbcBit = -7
XdbcWchar = -8
XdbcWvarchar = -9
Implementations§
Source§impl XdbcDataType
impl XdbcDataType
Source§impl XdbcDataType
impl XdbcDataType
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 XdbcDataType
impl Clone for XdbcDataType
Source§fn clone(&self) -> XdbcDataType
fn clone(&self) -> XdbcDataType
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 XdbcDataType
impl Debug for XdbcDataType
Source§impl Default for XdbcDataType
impl Default for XdbcDataType
Source§fn default() -> XdbcDataType
fn default() -> XdbcDataType
Returns the “default value” for a type. Read more
Source§impl From<XdbcDataType> for i32
impl From<XdbcDataType> for i32
Source§fn from(value: XdbcDataType) -> i32
fn from(value: XdbcDataType) -> i32
Converts to this type from the input type.
Source§impl Hash for XdbcDataType
impl Hash for XdbcDataType
Source§impl Ord for XdbcDataType
impl Ord for XdbcDataType
Source§fn cmp(&self, other: &XdbcDataType) -> Ordering
fn cmp(&self, other: &XdbcDataType) -> 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 XdbcDataType
impl PartialEq for XdbcDataType
Source§impl PartialOrd for XdbcDataType
impl PartialOrd for XdbcDataType
Source§impl TryFrom<i32> for XdbcDataType
impl TryFrom<i32> for XdbcDataType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<XdbcDataType, UnknownEnumValue>
fn try_from(value: i32) -> Result<XdbcDataType, UnknownEnumValue>
Performs the conversion.
impl Copy for XdbcDataType
impl Eq for XdbcDataType
impl StructuralPartialEq for XdbcDataType
Auto Trait Implementations§
impl Freeze for XdbcDataType
impl RefUnwindSafe for XdbcDataType
impl Send for XdbcDataType
impl Sync for XdbcDataType
impl Unpin for XdbcDataType
impl UnwindSafe for XdbcDataType
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
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request