pub struct NumberValue {
pub type: NumberValueType,
pub value: Value,
}Fields§
§type: NumberValueType§value: ValueImplementations§
Source§impl NumberValue
impl NumberValue
pub fn builder() -> NumberValueBuilder
Source§impl NumberValue
impl NumberValue
Source§impl NumberValue
impl NumberValue
pub const IDENTIFIER: &'static str = "script.NumberValue"
pub const DOMAIN_DIRECTION: &'static str = "all"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for NumberValue
impl Clone for NumberValue
Source§fn clone(&self) -> NumberValue
fn clone(&self) -> NumberValue
Returns a duplicate of the value. Read more
1.0.0 · 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 NumberValue
impl Debug for NumberValue
Source§impl<'de> Deserialize<'de> for NumberValue
impl<'de> Deserialize<'de> for NumberValue
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 From<NumberValue> for PrimitiveProtocolValue
impl From<NumberValue> for PrimitiveProtocolValue
Source§fn from(v: NumberValue) -> Self
fn from(v: NumberValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NumberValue
impl PartialEq for NumberValue
Source§impl Serialize for NumberValue
impl Serialize for NumberValue
Source§impl TryFrom<PrimitiveProtocolValue> for NumberValue
impl TryFrom<PrimitiveProtocolValue> for NumberValue
Source§type Error = PrimitiveProtocolValue
type Error = PrimitiveProtocolValue
The type returned in the event of a conversion error.
impl StructuralPartialEq for NumberValue
Auto Trait Implementations§
impl Freeze for NumberValue
impl RefUnwindSafe for NumberValue
impl Send for NumberValue
impl Sync for NumberValue
impl Unpin for NumberValue
impl UnsafeUnpin for NumberValue
impl UnwindSafe for NumberValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more