pub enum Amf0Value<'a> {
Number(f64),
Boolean(bool),
String(StringCow<'a>),
Object(Amf0Object<'a>),
Null,
Array(Amf0Array<'a>),
}
Expand description
Represents any AMF0 value.
Variants§
Number(f64)
AMF0 Number.
Boolean(bool)
AMF0 Boolean.
String(StringCow<'a>)
AMF0 String.
Object(Amf0Object<'a>)
AMF0 Object.
Null
AMF0 Null.
Array(Amf0Array<'a>)
AMF0 Array.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Amf0Value<'de>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Amf0Value<'de>
Available on crate feature
serde
only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<HashMap<StringCow<'a>, Amf0Value<'a>>> for Amf0Value<'a>
impl<'a> From<HashMap<StringCow<'a>, Amf0Value<'a>>> for Amf0Value<'a>
Source§fn from(value: Amf0Object<'a>) -> Self
fn from(value: Amf0Object<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> FromIterator<Amf0Value<'a>> for Amf0Value<'a>
impl<'a> FromIterator<Amf0Value<'a>> for Amf0Value<'a>
impl<'a> StructuralPartialEq for Amf0Value<'a>
Auto Trait Implementations§
impl<'a> !Freeze for Amf0Value<'a>
impl<'a> RefUnwindSafe for Amf0Value<'a>
impl<'a> Send for Amf0Value<'a>
impl<'a> Sync for Amf0Value<'a>
impl<'a> Unpin for Amf0Value<'a>
impl<'a> UnwindSafe for Amf0Value<'a>
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