pub struct NamedDataType { /* private fields */ }Implementations§
Source§impl NamedDataType
impl NamedDataType
pub fn new( name: impl Into<String>, ty: TypeExpr, ) -> Result<NamedDataType, NamedDataTypeError>
pub fn object( name: impl Into<String>, fields: Vec<TypeField>, ) -> Result<NamedDataType, NamedDataTypeError>
pub fn name(&self) -> &str
pub fn ty(&self) -> &TypeExpr
pub fn to_ref_ty(&self) -> TypeExpr
Trait Implementations§
Source§impl Clone for NamedDataType
impl Clone for NamedDataType
Source§fn clone(&self) -> NamedDataType
fn clone(&self) -> NamedDataType
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 NamedDataType
impl Debug for NamedDataType
Source§impl<'de> Deserialize<'de> for NamedDataType
impl<'de> Deserialize<'de> for NamedDataType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NamedDataType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NamedDataType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NamedDataType
Source§impl PartialEq for NamedDataType
impl PartialEq for NamedDataType
Source§fn eq(&self, other: &NamedDataType) -> bool
fn eq(&self, other: &NamedDataType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NamedDataType
impl Serialize for NamedDataType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for NamedDataType
Auto Trait Implementations§
impl Freeze for NamedDataType
impl RefUnwindSafe for NamedDataType
impl Send for NamedDataType
impl Sync for NamedDataType
impl Unpin for NamedDataType
impl UnsafeUnpin for NamedDataType
impl UnwindSafe for NamedDataType
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