pub struct IndexesSettings {
pub span_range: Range<usize>,
pub attributes: Vec<Attribute>,
pub type: Option<IndexesType>,
pub is_unique: bool,
pub is_pk: bool,
pub note: Option<String>,
pub name: Option<String>,
}
Expand description
Represents settings of an indexes definition.
Fields§
§span_range: Range<usize>
The range of the span in the source text.
attributes: Vec<Attribute>
A vector of key and optional value pairs representing attributes of the indexes definition.
type: Option<IndexesType>
A Type of index (btree, gin, gist, hash depending on DB).
is_unique: bool
A unique index.
is_pk: bool
A primary index.
note: Option<String>
A note.
name: Option<String>
An index name.
Trait Implementations§
Source§impl Clone for IndexesSettings
impl Clone for IndexesSettings
Source§fn clone(&self) -> IndexesSettings
fn clone(&self) -> IndexesSettings
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 IndexesSettings
impl Debug for IndexesSettings
Source§impl Default for IndexesSettings
impl Default for IndexesSettings
Source§fn default() -> IndexesSettings
fn default() -> IndexesSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IndexesSettings
impl RefUnwindSafe for IndexesSettings
impl Send for IndexesSettings
impl Sync for IndexesSettings
impl Unpin for IndexesSettings
impl UnwindSafe for IndexesSettings
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