pub enum PayloadValue {
Number(f64),
Bool(bool),
Str(String),
Null,
Point(Point<Points>),
Size(Size<Points>),
Bounds(Bounds<Points>),
}Expand description
A value in an event payload.
Variants§
Number(f64)
A number.
Bool(bool)
A boolean.
Str(String)
A string.
Null
null.
Point(Point<Points>)
A position ({ x, y }).
Size(Size<Points>)
An extent ({ width, height }).
Bounds(Bounds<Points>)
A position and an extent ({ origin, size }).
Trait Implementations§
Source§impl Clone for PayloadValue
impl Clone for PayloadValue
Source§impl Debug for PayloadValue
impl Debug for PayloadValue
Source§impl PartialEq for PayloadValue
impl PartialEq for PayloadValue
impl StructuralPartialEq for PayloadValue
Auto Trait Implementations§
impl Forget for PayloadValue
impl Freeze for PayloadValue
impl Move for PayloadValue
impl RefUnwindSafe for PayloadValue
impl Send for PayloadValuewhere
RawVecInner: Send,
impl Sync for PayloadValuewhere
RawVecInner: Sync,
impl Unpin for PayloadValue
impl UnsafeUnpin for PayloadValue
impl UnwindSafe for PayloadValuewhere
RawVecInner: UnwindSafe,
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