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