pub struct SecurityLabel {
pub provider: Option<Ident>,
pub object_kind: SecurityLabelObjectKind,
pub object_name: ObjectName,
pub label: Option<Value>,
}Expand description
A SECURITY LABEL statement.
Note: this is a PostgreSQL-specific statement. https://www.postgresql.org/docs/current/sql-securitylabel.html
Fields§
§provider: Option<Ident>Optional FOR provider_name clause.
object_kind: SecurityLabelObjectKindThe kind of object the label is applied to.
object_name: ObjectNameThe name of the object the label is applied to.
label: Option<Value>The label string, or None for IS NULL.
Trait Implementations§
Source§impl Clone for SecurityLabel
impl Clone for SecurityLabel
Source§fn clone(&self) -> SecurityLabel
fn clone(&self) -> SecurityLabel
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 Debug for SecurityLabel
impl Debug for SecurityLabel
Source§impl<'de> Deserialize<'de> for SecurityLabel
impl<'de> Deserialize<'de> for SecurityLabel
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 Display for SecurityLabel
impl Display for SecurityLabel
Source§impl From<SecurityLabel> for Statement
impl From<SecurityLabel> for Statement
Source§fn from(v: SecurityLabel) -> Self
fn from(v: SecurityLabel) -> Self
Converts to this type from the input type.
Source§impl Hash for SecurityLabel
impl Hash for SecurityLabel
Source§impl Ord for SecurityLabel
impl Ord for SecurityLabel
Source§fn cmp(&self, other: &SecurityLabel) -> Ordering
fn cmp(&self, other: &SecurityLabel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SecurityLabel
impl PartialEq for SecurityLabel
Source§impl PartialOrd for SecurityLabel
impl PartialOrd for SecurityLabel
Source§impl Serialize for SecurityLabel
impl Serialize for SecurityLabel
Source§impl Visit for SecurityLabel
impl Visit for SecurityLabel
Source§impl VisitMut for SecurityLabel
impl VisitMut for SecurityLabel
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for SecurityLabel
impl StructuralPartialEq for SecurityLabel
Auto Trait Implementations§
impl Freeze for SecurityLabel
impl RefUnwindSafe for SecurityLabel
impl Send for SecurityLabel
impl Sync for SecurityLabel
impl Unpin for SecurityLabel
impl UnsafeUnpin for SecurityLabel
impl UnwindSafe for SecurityLabel
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