pub enum Value {
Null,
Boolean(bool),
Int(i64),
Float(f64),
String(String),
Bytes(Vec<u8>),
Table(Vec<Vec<Value>>),
}Expand description
값
Variants§
Null
Boolean(bool)
Int(i64)
Float(f64)
String(String)
Bytes(Vec<u8>)
Table(Vec<Vec<Value>>)
테이블 결과 (행 × 열)
Implementations§
Source§impl Value
impl Value
pub fn data_type(&self) -> DataType
pub fn matches_type(&self, expected: &DataType) -> bool
pub fn as_bool(&self) -> DbxResult<bool>
pub fn as_i64(&self) -> DbxResult<i64>
pub fn as_f64(&self) -> DbxResult<f64>
pub fn as_str(&self) -> DbxResult<&str>
pub fn as_bytes(&self) -> DbxResult<&[u8]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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> 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