pub struct MoveStruct {
pub name: String,
pub is_native: bool,
pub is_event: bool,
pub abilities: Vec<String>,
pub generic_type_params: Vec<MoveStructGenericTypeParam>,
pub fields: Vec<MoveStructField>,
}Expand description
MoveStruct : A move struct
Fields§
§name: String§is_native: boolWhether the struct is a native struct of Move
is_event: boolWhether the struct is marked with the #[event] annotation
abilities: Vec<String>Abilities associated with the struct
generic_type_params: Vec<MoveStructGenericTypeParam>Generic types associated with the struct
fields: Vec<MoveStructField>Fields associated with the struct
Implementations§
Source§impl MoveStruct
impl MoveStruct
Sourcepub fn new(
name: String,
is_native: bool,
is_event: bool,
abilities: Vec<String>,
generic_type_params: Vec<MoveStructGenericTypeParam>,
fields: Vec<MoveStructField>,
) -> MoveStruct
pub fn new( name: String, is_native: bool, is_event: bool, abilities: Vec<String>, generic_type_params: Vec<MoveStructGenericTypeParam>, fields: Vec<MoveStructField>, ) -> MoveStruct
A move struct
Trait Implementations§
Source§impl Clone for MoveStruct
impl Clone for MoveStruct
Source§fn clone(&self) -> MoveStruct
fn clone(&self) -> MoveStruct
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 MoveStruct
impl Debug for MoveStruct
Source§impl Default for MoveStruct
impl Default for MoveStruct
Source§fn default() -> MoveStruct
fn default() -> MoveStruct
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MoveStruct
impl<'de> Deserialize<'de> for MoveStruct
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 MoveStruct
impl PartialEq for MoveStruct
Source§fn eq(&self, other: &MoveStruct) -> bool
fn eq(&self, other: &MoveStruct) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MoveStruct
impl Serialize for MoveStruct
impl StructuralPartialEq for MoveStruct
Auto Trait Implementations§
impl Freeze for MoveStruct
impl RefUnwindSafe for MoveStruct
impl Send for MoveStruct
impl Sync for MoveStruct
impl Unpin for MoveStruct
impl UnsafeUnpin for MoveStruct
impl UnwindSafe for MoveStruct
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