pub struct AddFieldMutation {
pub struct_id: SymbolId,
pub field_name: String,
pub field_type: String,
pub is_pub: bool,
}Expand description
Add a field to an existing struct
Fields§
§struct_id: SymbolId§field_name: String§field_type: String§is_pub: boolImplementations§
Trait Implementations§
Source§impl Clone for AddFieldMutation
impl Clone for AddFieldMutation
Source§fn clone(&self) -> AddFieldMutation
fn clone(&self) -> AddFieldMutation
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 AddFieldMutation
impl Debug for AddFieldMutation
Source§impl Mutation for AddFieldMutation
impl Mutation for AddFieldMutation
Source§fn mutation_type(&self) -> &'static str
fn mutation_type(&self) -> &'static str
Get the mutation type name
Source§fn validate(&self, _file: &PureFile) -> ValidationResult
fn validate(&self, _file: &PureFile) -> ValidationResult
Validate the mutation before applying Read more
Source§fn can_proceed(&self, file: &PureFile, strategy: ValidationStrategy) -> bool
fn can_proceed(&self, file: &PureFile, strategy: ValidationStrategy) -> bool
Check if this mutation can proceed with the given strategy
Source§impl ToSerializable for AddFieldMutation
impl ToSerializable for AddFieldMutation
fn to_serializable(&self) -> SerializableMutation
Auto Trait Implementations§
impl Freeze for AddFieldMutation
impl RefUnwindSafe for AddFieldMutation
impl Send for AddFieldMutation
impl Sync for AddFieldMutation
impl Unpin for AddFieldMutation
impl UnsafeUnpin for AddFieldMutation
impl UnwindSafe for AddFieldMutation
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