pub struct LongStr(/* private fields */);Expand description
AMQP long string type.
User should not directly create it, but use conversion method to create
from String or &str.
§Usage
// create a LongStr from `&str`
let s: LongStr = "hello".try_into().unwrap();
// create a LongStr from `String`
let s: LongStr = String::from("hello").try_into().unwrap();Trait Implementations§
Source§impl<'de> Deserialize<'de> for LongStr
impl<'de> Deserialize<'de> for LongStr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LongStr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LongStr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LongStr> for FieldValue
impl From<LongStr> for FieldValue
Source§fn from(v: LongStr) -> FieldValue
fn from(v: LongStr) -> FieldValue
Converts to this type from the input type.
Source§impl Serialize for LongStr
impl Serialize for LongStr
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<'a> TryFrom<&'a FieldValue> for &'a LongStr
impl<'a> TryFrom<&'a FieldValue> for &'a LongStr
Source§impl TryFrom<FieldValue> for LongStr
impl TryFrom<FieldValue> for LongStr
impl Eq for LongStr
impl StructuralPartialEq for LongStr
Auto Trait Implementations§
impl Freeze for LongStr
impl RefUnwindSafe for LongStr
impl Send for LongStr
impl Sync for LongStr
impl Unpin for LongStr
impl UnwindSafe for LongStr
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