pub struct AmountNumberDisplayNode {
pub decimals: Box<Option<InjectableNumberValueNode>>,
pub unit: Box<Option<InjectableStringValueNode>>,
}Fields§
§decimals: Box<Option<InjectableNumberValueNode>>§unit: Box<Option<InjectableStringValueNode>>Implementations§
Source§impl AmountNumberDisplayNode
impl AmountNumberDisplayNode
Trait Implementations§
Source§impl Clone for AmountNumberDisplayNode
impl Clone for AmountNumberDisplayNode
Source§fn clone(&self) -> AmountNumberDisplayNode
fn clone(&self) -> AmountNumberDisplayNode
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 AmountNumberDisplayNode
impl Debug for AmountNumberDisplayNode
Source§impl Default for AmountNumberDisplayNode
impl Default for AmountNumberDisplayNode
Source§fn default() -> AmountNumberDisplayNode
fn default() -> AmountNumberDisplayNode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AmountNumberDisplayNode
impl<'de> Deserialize<'de> for AmountNumberDisplayNode
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<AmountNumberDisplayNode> for Node
impl From<AmountNumberDisplayNode> for Node
Source§fn from(val: AmountNumberDisplayNode) -> Self
fn from(val: AmountNumberDisplayNode) -> Self
Converts to this type from the input type.
Source§impl From<AmountNumberDisplayNode> for DisplayNode
impl From<AmountNumberDisplayNode> for DisplayNode
Source§fn from(value: AmountNumberDisplayNode) -> Self
fn from(value: AmountNumberDisplayNode) -> Self
Converts to this type from the input type.
Source§impl From<AmountNumberDisplayNode> for NumberDisplayNode
impl From<AmountNumberDisplayNode> for NumberDisplayNode
Source§fn from(value: AmountNumberDisplayNode) -> Self
fn from(value: AmountNumberDisplayNode) -> Self
Converts to this type from the input type.
Source§impl NodeTrait for AmountNumberDisplayNode
impl NodeTrait for AmountNumberDisplayNode
const KIND: &'static str = "amountNumberDisplayNode"
fn to_json(&self) -> CodamaResult<String>
fn to_json_pretty(&self) -> CodamaResult<String>
fn from_json(json: &str) -> CodamaResult<Self>
Source§impl PartialEq for AmountNumberDisplayNode
impl PartialEq for AmountNumberDisplayNode
Source§impl Serialize for AmountNumberDisplayNode
impl Serialize for AmountNumberDisplayNode
impl StructuralPartialEq for AmountNumberDisplayNode
Auto Trait Implementations§
impl Freeze for AmountNumberDisplayNode
impl RefUnwindSafe for AmountNumberDisplayNode
impl Send for AmountNumberDisplayNode
impl Sync for AmountNumberDisplayNode
impl Unpin for AmountNumberDisplayNode
impl UnsafeUnpin for AmountNumberDisplayNode
impl UnwindSafe for AmountNumberDisplayNode
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