pub enum AttributeAction<'a> {
Add {
add_attribute_span: Span,
attribute_name: Identifier<'a>,
data_type: DataType<'a>,
collate: Option<(Span, QualifiedName<'a>)>,
cascade_or_restrict: Option<CascadeOrRestrict>,
},
Drop {
drop_attribute_span: Span,
if_exists_span: Option<Span>,
attribute_name: Identifier<'a>,
cascade_or_restrict: Option<CascadeOrRestrict>,
},
Alter {
alter_attribute_span: Span,
attribute_name: Identifier<'a>,
set_data_span: Option<Span>,
type_span: Span,
data_type: DataType<'a>,
collate: Option<(Span, QualifiedName<'a>)>,
cascade_or_restrict: Option<CascadeOrRestrict>,
},
}Expand description
Attribute actions for composite types
Variants§
Add
ADD ATTRIBUTE attribute_name data_type [ COLLATE collation ] [ CASCADE | RESTRICT ]
Fields
§
attribute_name: Identifier<'a>§
collate: Option<(Span, QualifiedName<'a>)>§
cascade_or_restrict: Option<CascadeOrRestrict>Drop
DROP ATTRIBUTE [ IF EXISTS ] attribute_name [ CASCADE | RESTRICT ]
Alter
ALTER ATTRIBUTE attribute_name [ SET DATA ] TYPE data_type [ COLLATE collation ] [ CASCADE | RESTRICT ]
Trait Implementations§
Source§impl<'a> Clone for AttributeAction<'a>
impl<'a> Clone for AttributeAction<'a>
Source§fn clone(&self) -> AttributeAction<'a>
fn clone(&self) -> AttributeAction<'a>
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<'a> Debug for AttributeAction<'a>
impl<'a> Debug for AttributeAction<'a>
Auto Trait Implementations§
impl<'a> Freeze for AttributeAction<'a>
impl<'a> RefUnwindSafe for AttributeAction<'a>
impl<'a> Send for AttributeAction<'a>
impl<'a> Sync for AttributeAction<'a>
impl<'a> Unpin for AttributeAction<'a>
impl<'a> UnsafeUnpin for AttributeAction<'a>
impl<'a> UnwindSafe for AttributeAction<'a>
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