pub enum StaticValue {
Null,
Bool(bool),
I64(i64),
U64(u64),
F64(f64),
Str(&'static str),
}Expand description
Static type metadata used by proc macros in link-time endpoint registration.
Variants§
Null
JSON null literal.
Bool(bool)
Boolean literal.
I64(i64)
Signed integer literal.
U64(u64)
Unsigned integer literal.
F64(f64)
Floating-point literal.
Str(&'static str)
String literal.
Implementations§
Trait Implementations§
Source§impl Clone for StaticValue
impl Clone for StaticValue
Source§fn clone(&self) -> StaticValue
fn clone(&self) -> StaticValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StaticValue
impl Debug for StaticValue
Source§impl PartialEq for StaticValue
impl PartialEq for StaticValue
impl StructuralPartialEq for StaticValue
Auto Trait Implementations§
impl Freeze for StaticValue
impl RefUnwindSafe for StaticValue
impl Send for StaticValue
impl Sync for StaticValue
impl Unpin for StaticValue
impl UnsafeUnpin for StaticValue
impl UnwindSafe for StaticValue
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