pub struct CommentOnStatement<X: Extension = NoExt> {
pub if_exists: bool,
pub target: CommentTarget<X>,
pub name: ObjectName,
pub constraint_table: Option<ObjectName>,
pub comment: Option<Literal>,
pub meta: Meta,
}Expand description
The payload of a Statement::CommentOn, boxed off the
statement enum to keep it within its size budget (like DropStatement).
name is the object’s (possibly qualified) name; target records its kind (and, for
a procedure, its argument-type signature). comment is None for IS NULL — which
clears the object’s comment — and Some for a string literal.
Fields§
§if_exists: boolWhether the front-position IF EXISTS guard was present.
target: CommentTarget<X>Object targeted by this syntax.
name: ObjectNameName referenced by this syntax.
constraint_table: Option<ObjectName>Relation owning a CONSTRAINT target; absent for every other target.
comment: Option<Literal>Optional comment for this syntax.
meta: MetaSource location and node identity.
Trait Implementations§
Source§impl<X: Clone + Extension> Clone for CommentOnStatement<X>
impl<X: Clone + Extension> Clone for CommentOnStatement<X>
Source§fn clone(&self) -> CommentOnStatement<X>
fn clone(&self) -> CommentOnStatement<X>
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<'de, X> Deserialize<'de> for CommentOnStatement<X>where
X: Deserialize<'de> + Extension,
impl<'de, X> Deserialize<'de> for CommentOnStatement<X>where
X: Deserialize<'de> + Extension,
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
impl<X: Eq + Extension> Eq for CommentOnStatement<X>
Source§impl<X> Serialize for CommentOnStatement<X>
impl<X> Serialize for CommentOnStatement<X>
Source§impl<X: Extension> Spanned for CommentOnStatement<X>
impl<X: Extension> Spanned for CommentOnStatement<X>
impl<X: PartialEq + Extension> StructuralPartialEq for CommentOnStatement<X>
Auto Trait Implementations§
impl<X> Freeze for CommentOnStatement<X>
impl<X> RefUnwindSafe for CommentOnStatement<X>where
X: RefUnwindSafe,
impl<X> Send for CommentOnStatement<X>where
X: Send,
impl<X> Sync for CommentOnStatement<X>where
X: Sync,
impl<X> Unpin for CommentOnStatement<X>where
X: Unpin,
impl<X> UnsafeUnpin for CommentOnStatement<X>
impl<X> UnwindSafe for CommentOnStatement<X>where
X: UnwindSafe,
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