pub struct CreateOperatorClass {
pub name: ObjectName,
pub default: bool,
pub for_type: DataType,
pub using: Ident,
pub family: Option<ObjectName>,
pub items: Vec<OperatorClassItem>,
}Expand description
CREATE OPERATOR CLASS statement See https://www.postgresql.org/docs/current/sql-createopclass.html
Fields§
§name: ObjectNameOperator class name (can be schema-qualified)
default: boolWhether this is the default operator class for the type
for_type: DataTypeThe data type
using: IdentIndex method (btree, hash, gist, gin, etc.)
family: Option<ObjectName>Optional operator family name
items: Vec<OperatorClassItem>List of operator class items (operators, functions, storage)
Trait Implementations§
Source§impl Clone for CreateOperatorClass
impl Clone for CreateOperatorClass
Source§fn clone(&self) -> CreateOperatorClass
fn clone(&self) -> CreateOperatorClass
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 CreateOperatorClass
impl Debug for CreateOperatorClass
Source§impl Display for CreateOperatorClass
impl Display for CreateOperatorClass
Source§impl From<CreateOperatorClass> for Statement
impl From<CreateOperatorClass> for Statement
Source§fn from(c: CreateOperatorClass) -> Self
fn from(c: CreateOperatorClass) -> Self
Converts to this type from the input type.
Source§impl Hash for CreateOperatorClass
impl Hash for CreateOperatorClass
Source§impl Ord for CreateOperatorClass
impl Ord for CreateOperatorClass
Source§fn cmp(&self, other: &CreateOperatorClass) -> Ordering
fn cmp(&self, other: &CreateOperatorClass) -> 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 CreateOperatorClass
impl PartialEq for CreateOperatorClass
Source§impl PartialOrd for CreateOperatorClass
impl PartialOrd for CreateOperatorClass
Source§impl Spanned for CreateOperatorClass
impl Spanned for CreateOperatorClass
Source§impl Visit for CreateOperatorClass
impl Visit for CreateOperatorClass
Source§impl VisitMut for CreateOperatorClass
impl VisitMut for CreateOperatorClass
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 CreateOperatorClass
impl StructuralPartialEq for CreateOperatorClass
Auto Trait Implementations§
impl Freeze for CreateOperatorClass
impl RefUnwindSafe for CreateOperatorClass
impl Send for CreateOperatorClass
impl Sync for CreateOperatorClass
impl Unpin for CreateOperatorClass
impl UnsafeUnpin for CreateOperatorClass
impl UnwindSafe for CreateOperatorClass
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