Enum resp_async::Value [−][src]
pub enum Value { String(String), Error(String), Integer(i64), Bulk(Vec<u8>), Null, Array(Vec<Value>), }
Variants
String(String)
Error(String)
Integer(i64)
Bulk(Vec<u8>)
Null
Array(Vec<Value>)
Trait Implementations
impl Debug for Value
[src]
impl Debug for Value
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Value
[src]
impl Clone for Value
fn clone(&self) -> Value
[src]
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for Value
[src]
impl Eq for Value
impl PartialEq for Value
[src]
impl PartialEq for Value
fn eq(&self, other: &Value) -> bool
[src]
fn eq(&self, other: &Value) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Value) -> bool
[src]
fn ne(&self, other: &Value) -> bool
This method tests for !=
.
impl TryInto<String> for Value
[src]
impl TryInto<String> for Value
type Error = Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<String>
[src]
fn try_into(self) -> Result<String>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl Into<String> for Value
[src]
impl Into<String> for Value
impl TryInto<Vec<u8>> for Value
[src]
impl TryInto<Vec<u8>> for Value
type Error = Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<Vec<u8>>
[src]
fn try_into(self) -> Result<Vec<u8>>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl Into<Vec<u8>> for Value
[src]
impl Into<Vec<u8>> for Value
impl TryInto<i64> for Value
[src]
impl TryInto<i64> for Value
type Error = Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<i64>
[src]
fn try_into(self) -> Result<i64>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl Into<i64> for Value
[src]
impl Into<i64> for Value
impl TryInto<Option<Vec<u8>>> for Value
[src]
impl TryInto<Option<Vec<u8>>> for Value
type Error = Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<Option<Vec<u8>>>
[src]
fn try_into(self) -> Result<Option<Vec<u8>>>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl Into<Option<Vec<u8>>> for Value
[src]
impl Into<Option<Vec<u8>>> for Value
impl From<i64> for Value
[src]
impl From<i64> for Value
impl From<i32> for Value
[src]
impl From<i32> for Value
impl From<usize> for Value
[src]
impl From<usize> for Value
impl From<u32> for Value
[src]
impl From<u32> for Value
impl From<u64> for Value
[src]
impl From<u64> for Value
impl From<Vec<u8>> for Value
[src]
impl From<Vec<u8>> for Value
impl From<Option<Vec<u8>>> for Value
[src]
impl From<Option<Vec<u8>>> for Value
impl<T> From<Vec<T>> for Value where
T: Into<Value>,
[src]
impl<T> From<Vec<T>> for Value where
T: Into<Value>,