pub struct AmountTypeNode {
pub decimals: u8,
pub unit: Option<String>,
pub number: NestedTypeNode<NumberTypeNode>,
}Fields§
§decimals: u8§unit: Option<String>§number: NestedTypeNode<NumberTypeNode>Implementations§
Trait Implementations§
Source§impl Clone for AmountTypeNode
impl Clone for AmountTypeNode
Source§fn clone(&self) -> AmountTypeNode
fn clone(&self) -> AmountTypeNode
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 AmountTypeNode
impl Debug for AmountTypeNode
Source§impl<'de> Deserialize<'de> for AmountTypeNode
impl<'de> Deserialize<'de> for AmountTypeNode
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<AmountTypeNode> for Node
impl From<AmountTypeNode> for Node
Source§fn from(val: AmountTypeNode) -> Self
fn from(val: AmountTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<AmountTypeNode> for RegisteredTypeNode
impl From<AmountTypeNode> for RegisteredTypeNode
Source§fn from(value: AmountTypeNode) -> Self
fn from(value: AmountTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<AmountTypeNode> for TypeNode
impl From<AmountTypeNode> for TypeNode
Source§fn from(value: AmountTypeNode) -> Self
fn from(value: AmountTypeNode) -> Self
Converts to this type from the input type.
Source§impl NodeTrait for AmountTypeNode
impl NodeTrait for AmountTypeNode
const KIND: &'static str = "amountTypeNode"
fn to_json(&self) -> CodamaResult<String>
fn to_json_pretty(&self) -> CodamaResult<String>
fn from_json(json: &str) -> CodamaResult<Self>
Source§impl PartialEq for AmountTypeNode
impl PartialEq for AmountTypeNode
Source§impl Serialize for AmountTypeNode
impl Serialize for AmountTypeNode
Source§impl TypeNodeTrait for AmountTypeNode
impl TypeNodeTrait for AmountTypeNode
fn try_from_type_node(node: TypeNode) -> CodamaResult<Self>
fn into_type_node(self) -> TypeNode
impl StructuralPartialEq for AmountTypeNode
Auto Trait Implementations§
impl Freeze for AmountTypeNode
impl RefUnwindSafe for AmountTypeNode
impl Send for AmountTypeNode
impl Sync for AmountTypeNode
impl Unpin for AmountTypeNode
impl UnwindSafe for AmountTypeNode
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