pub enum SimpleValue {
}
Expand description
Primitive AMQP 1.0 data type
Variants§
Null
Boolean(bool)
Ubyte(u8)
Ushort(u16)
Uint(u32)
Ulong(u64)
Byte(i8)
Short(i16)
Int(i32)
Long(i64)
Float(Float)
Double(Double)
Char(char)
Timestamp(Timestamp)
Uuid(Uuid)
Binary(Vec<u8>)
String(String)
Symbol(Symbol)
Trait Implementations§
Source§impl Clone for SimpleValue
impl Clone for SimpleValue
Source§fn clone(&self) -> SimpleValue
fn clone(&self) -> SimpleValue
Returns a duplicate 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 SimpleValue
impl Debug for SimpleValue
Source§impl From<&str> for SimpleValue
impl From<&str> for SimpleValue
Source§fn from(string: &str) -> SimpleValue
fn from(string: &str) -> SimpleValue
Converts to this type from the input type.
Source§impl From<Double> for SimpleValue
impl From<Double> for SimpleValue
Source§fn from(value: Double) -> SimpleValue
fn from(value: Double) -> SimpleValue
Converts to this type from the input type.
Source§impl From<Float> for SimpleValue
impl From<Float> for SimpleValue
Source§fn from(value: Float) -> SimpleValue
fn from(value: Float) -> SimpleValue
Converts to this type from the input type.
Source§impl From<String> for SimpleValue
impl From<String> for SimpleValue
Source§fn from(value: String) -> SimpleValue
fn from(value: String) -> SimpleValue
Converts to this type from the input type.
Source§impl From<Symbol> for SimpleValue
impl From<Symbol> for SimpleValue
Source§fn from(value: Symbol) -> SimpleValue
fn from(value: Symbol) -> SimpleValue
Converts to this type from the input type.
Source§impl From<Timestamp> for SimpleValue
impl From<Timestamp> for SimpleValue
Source§fn from(value: Timestamp) -> SimpleValue
fn from(value: Timestamp) -> SimpleValue
Converts to this type from the input type.
Source§impl From<Uuid> for SimpleValue
impl From<Uuid> for SimpleValue
Source§fn from(value: Uuid) -> SimpleValue
fn from(value: Uuid) -> SimpleValue
Converts to this type from the input type.
Source§impl From<bool> for SimpleValue
impl From<bool> for SimpleValue
Source§fn from(value: bool) -> SimpleValue
fn from(value: bool) -> SimpleValue
Converts to this type from the input type.
Source§impl From<char> for SimpleValue
impl From<char> for SimpleValue
Source§fn from(value: char) -> SimpleValue
fn from(value: char) -> SimpleValue
Converts to this type from the input type.
Source§impl From<i16> for SimpleValue
impl From<i16> for SimpleValue
Source§fn from(value: i16) -> SimpleValue
fn from(value: i16) -> SimpleValue
Converts to this type from the input type.
Source§impl From<i32> for SimpleValue
impl From<i32> for SimpleValue
Source§fn from(value: i32) -> SimpleValue
fn from(value: i32) -> SimpleValue
Converts to this type from the input type.
Source§impl From<i64> for SimpleValue
impl From<i64> for SimpleValue
Source§fn from(value: i64) -> SimpleValue
fn from(value: i64) -> SimpleValue
Converts to this type from the input type.
Source§impl From<i8> for SimpleValue
impl From<i8> for SimpleValue
Source§fn from(value: i8) -> SimpleValue
fn from(value: i8) -> SimpleValue
Converts to this type from the input type.
Source§impl From<u16> for SimpleValue
impl From<u16> for SimpleValue
Source§fn from(value: u16) -> SimpleValue
fn from(value: u16) -> SimpleValue
Converts to this type from the input type.
Source§impl From<u32> for SimpleValue
impl From<u32> for SimpleValue
Source§fn from(value: u32) -> SimpleValue
fn from(value: u32) -> SimpleValue
Converts to this type from the input type.
Source§impl From<u64> for SimpleValue
impl From<u64> for SimpleValue
Source§fn from(value: u64) -> SimpleValue
fn from(value: u64) -> SimpleValue
Converts to this type from the input type.
Source§impl From<u8> for SimpleValue
impl From<u8> for SimpleValue
Source§fn from(value: u8) -> SimpleValue
fn from(value: u8) -> SimpleValue
Converts to this type from the input type.
Source§impl Hash for SimpleValue
impl Hash for SimpleValue
Source§impl PartialEq for SimpleValue
impl PartialEq for SimpleValue
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime SimpleValue> for &'__deriveMoreLifetime Vec<u8>
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime SimpleValue> for &'__deriveMoreLifetime Vec<u8>
Source§type Error = TryIntoError<&'__deriveMoreLifetime SimpleValue>
type Error = TryIntoError<&'__deriveMoreLifetime SimpleValue>
The type returned in the event of a conversion error.
Source§fn try_from(
value: &'__deriveMoreLifetime SimpleValue,
) -> Result<&'__deriveMoreLifetime Vec<u8>, TryIntoError<&'__deriveMoreLifetime SimpleValue>>
fn try_from( value: &'__deriveMoreLifetime SimpleValue, ) -> Result<&'__deriveMoreLifetime Vec<u8>, TryIntoError<&'__deriveMoreLifetime SimpleValue>>
Performs the conversion.
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut SimpleValue> for &'__deriveMoreLifetime mut Vec<u8>
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut SimpleValue> for &'__deriveMoreLifetime mut Vec<u8>
Source§type Error = TryIntoError<&'__deriveMoreLifetime mut SimpleValue>
type Error = TryIntoError<&'__deriveMoreLifetime mut SimpleValue>
The type returned in the event of a conversion error.
Source§fn try_from(
value: &'__deriveMoreLifetime mut SimpleValue,
) -> Result<&'__deriveMoreLifetime mut Vec<u8>, TryIntoError<&'__deriveMoreLifetime mut SimpleValue>>
fn try_from( value: &'__deriveMoreLifetime mut SimpleValue, ) -> Result<&'__deriveMoreLifetime mut Vec<u8>, TryIntoError<&'__deriveMoreLifetime mut SimpleValue>>
Performs the conversion.
Source§impl TryFrom<SimpleValue> for Vec<u8>
impl TryFrom<SimpleValue> for Vec<u8>
Source§type Error = TryIntoError<SimpleValue>
type Error = TryIntoError<SimpleValue>
The type returned in the event of a conversion error.
Source§fn try_from(value: SimpleValue) -> Result<Vec<u8>, TryIntoError<SimpleValue>>
fn try_from(value: SimpleValue) -> Result<Vec<u8>, TryIntoError<SimpleValue>>
Performs the conversion.
impl Eq for SimpleValue
impl StructuralPartialEq for SimpleValue
Auto Trait Implementations§
impl Freeze for SimpleValue
impl RefUnwindSafe for SimpleValue
impl Send for SimpleValue
impl Sync for SimpleValue
impl Unpin for SimpleValue
impl UnwindSafe for SimpleValue
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