Union mimir::ODPIDataValueUnion
[−]
[src]
#[repr(C)]pub union ODPIDataValueUnion { pub as_boolean: c_int, pub as_int_64: i64, pub as_uint_64: u64, pub as_float: f32, pub as_double: f64, pub as_bytes: ODPIBytes, pub as_timestamp: ODPITimestamp, pub as_interval_ds: ODPIIntervalDS, pub as_interval_ym: ODPIIntervalYM, pub as_lob: *mut ODPILob, pub as_object: *mut ODPIObject, pub as_stmt: *mut ODPIStmt, pub as_rowid: *mut ODPIRowid, }
Struct represention C union type for ODPIData
.
Fields
as_boolean: c_int
Value that is used when ODPIData.is_null
is 0 and the native type that is being used is
ODPINativeTypeNum::Boolean
. The value should be either 1 (true) or 0 (false).
as_int_64: i64
Value that is used when ODPIData.is_null
is 0 and the native type that is being used is
ODPINativeTypeNum::Int64
.
as_uint_64: u64
Value that is used when ODPIData.is_null
is 0 and the native type that is being used is
ODPINativeTypeNum::Uint64
.
as_float: f32
Value that is used when ODPIData.is_null
is 0 and the native type that is being used is
ODPINativeTypeNum::Float
.
as_double: f64
Value that is used when ODPIData.is_null
is 0 and the native type that is being used is
ODPINativeTypeNum::Double
.
as_bytes: ODPIBytes
Value that is used when ODPIData.is_null
is 0 and the native type that is being used is
ODPINativeTypeNum::Bytes
. This is a structure of type ODPIBytes
.
as_timestamp: ODPITimestamp
Value that is used when ODPIData.is_null
is 0 and the native type that is being used is
ODPINativeTypeNum::Timestamp
. This is a structure of type ODPITimestamp
.
as_interval_ds: ODPIIntervalDS
Value that is used when ODPIData.is_null
is 0 and the native type that is being used is
ODPINativeTypeNum::IntervalDS
. This is a structure of type ODPIIntervalDS
.
as_interval_ym: ODPIIntervalYM
Value that is used when ODPIData.is_null
is 0 and the native type that is being used is
ODPINativeTypeNum::IntervalYM
. This is a structure of type ODPIIntervalYM
.
as_lob: *mut ODPILob
Value that is used when ODPIData.is_null
is 0 and the native type that is being used is
ODPINativeTypeNum::Lob
. This is a reference to a LOB (large object) which can be used for
reading and writing the data that belongs to it.
as_object: *mut ODPIObject
Value that is used when ODPIData.is_null
is 0 and the native type that is being used is
ODPINativeTypeNum::Object
. This is a reference to an object which can be used for reading
and writing its attributes or element values.
as_stmt: *mut ODPIStmt
Value that is used when ODPIData.is_null
is 0 and the native type that is being used is
ODPINativeTypeNum::Stmt
. This is a reference to a statement which can be used to query
data from the database.
as_rowid: *mut ODPIRowid
Value that is used when ODPIData.is_null
is 0 and the native type that is being used is
ODPINativeTypeNum::Rowid
. This is a reference to a rowid which is used to uniquely
identify a row in a table in the database.
Trait Implementations
impl Clone for ODPIDataValueUnion
[src]
fn clone(&self) -> ODPIDataValueUnion
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more