Struct sway_core::language::parsed::declaration::StructDeclaration
source · pub struct StructDeclaration {
pub name: Ident,
pub attributes: AttributesMap,
pub fields: Vec<StructField>,
pub type_parameters: Vec<TypeParameter>,
pub visibility: Visibility,
/* private fields */
}
Fields§
§name: Ident
§attributes: AttributesMap
§fields: Vec<StructField>
§type_parameters: Vec<TypeParameter>
§visibility: Visibility
Trait Implementations§
source§impl Clone for StructDeclaration
impl Clone for StructDeclaration
source§fn clone(&self) -> StructDeclaration
fn clone(&self) -> StructDeclaration
Returns a copy 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 more