pub struct DataDeclaration {
pub name: Identifier,
pub type_params: Vec<Identifier>,
pub constructors: Vec<ConstructorDef>,
}Fields§
§name: Identifier§type_params: Vec<Identifier>§constructors: Vec<ConstructorDef>Trait Implementations§
Source§impl Clone for DataDeclaration
impl Clone for DataDeclaration
Source§fn clone(&self) -> DataDeclaration
fn clone(&self) -> DataDeclaration
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 DataDeclaration
impl Debug for DataDeclaration
Source§impl<'de> Deserialize<'de> for DataDeclaration
impl<'de> Deserialize<'de> for DataDeclaration
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 PartialEq for DataDeclaration
impl PartialEq for DataDeclaration
Source§impl Serialize for DataDeclaration
impl Serialize for DataDeclaration
impl StructuralPartialEq for DataDeclaration
Auto Trait Implementations§
impl Freeze for DataDeclaration
impl RefUnwindSafe for DataDeclaration
impl Send for DataDeclaration
impl Sync for DataDeclaration
impl Unpin for DataDeclaration
impl UnwindSafe for DataDeclaration
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