pub struct RemoveFieldMutation {
pub struct_id: SymbolId,
pub field_name: String,
}Expand description
Remove a field from a struct
Fields§
§struct_id: SymbolIdSymbolId for the target struct (required, O(1) access)
field_name: StringImplementations§
Trait Implementations§
Source§impl Clone for RemoveFieldMutation
impl Clone for RemoveFieldMutation
Source§fn clone(&self) -> RemoveFieldMutation
fn clone(&self) -> RemoveFieldMutation
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 RemoveFieldMutation
impl Debug for RemoveFieldMutation
Source§impl Mutation for RemoveFieldMutation
impl Mutation for RemoveFieldMutation
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 RemoveFieldMutation
impl ToSerializable for RemoveFieldMutation
fn to_serializable(&self) -> SerializableMutation
Auto Trait Implementations§
impl Freeze for RemoveFieldMutation
impl RefUnwindSafe for RemoveFieldMutation
impl Send for RemoveFieldMutation
impl Sync for RemoveFieldMutation
impl Unpin for RemoveFieldMutation
impl UnsafeUnpin for RemoveFieldMutation
impl UnwindSafe for RemoveFieldMutation
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