pub enum Body {
}
Variants§
Byte(u8)
Short(i16)
Int(i32)
Long(i64)
Float(f32)
Double(f64)
String(String)
ByteArray(Vec<u8>)
Boolean(bool)
Char(char)
Null
Ping
Panic(String)
Implementations§
Source§impl Body
impl Body
pub fn is_null(&self) -> bool
pub fn as_bool(&self) -> Result<bool, &str>
pub fn as_f64(&self) -> Result<f64, &str>
pub fn as_f32(&self) -> Result<f32, &str>
pub fn as_i64(&self) -> Result<i64, &str>
pub fn as_i32(&self) -> Result<i32, &str>
pub fn as_i16(&self) -> Result<i16, &str>
pub fn as_u8(&self) -> Result<u8, &str>
pub fn as_string(&self) -> Result<&String, &str>
pub fn as_bytes(&self) -> Result<&Vec<u8>, &str>
pub fn as_panic(&self) -> Result<&String, &str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnwindSafe for Body
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