pub struct PostgresIndex {
pub name: String,
pub key_columns: Vec<PostgresIndexKeyColumn>,
pub index_type: String,
pub predicate: Option<String>,
pub included_columns: Vec<PostgresIndexIncludedColumn>,
pub index_constraint_type: PostgresIndexType,
pub storage_parameters: Vec<String>,
pub comment: Option<String>,
pub constraint_definition: Option<String>,
pub object_id: ObjectId,
}Fields§
§name: String§key_columns: Vec<PostgresIndexKeyColumn>§index_type: String§predicate: Option<String>§included_columns: Vec<PostgresIndexIncludedColumn>§index_constraint_type: PostgresIndexType§storage_parameters: Vec<String>§comment: Option<String>§constraint_definition: Option<String>For temporal primary keys, stores the constraint definition from pg_get_constraintdef().
object_id: ObjectIdImplementations§
Source§impl PostgresIndex
impl PostgresIndex
pub fn get_create_index_command( &self, schema: &PostgresSchema, table: &PostgresTable, identifier_quoter: &IdentifierQuoter, ) -> String
Trait Implementations§
Source§impl Clone for PostgresIndex
impl Clone for PostgresIndex
Source§fn clone(&self) -> PostgresIndex
fn clone(&self) -> PostgresIndex
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 Debug for PostgresIndex
impl Debug for PostgresIndex
Source§impl Default for PostgresIndex
impl Default for PostgresIndex
Source§fn default() -> PostgresIndex
fn default() -> PostgresIndex
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostgresIndex
impl<'de> Deserialize<'de> for PostgresIndex
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 Eq for PostgresIndex
Source§impl Ord for PostgresIndex
impl Ord for PostgresIndex
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PostgresIndex
impl PartialEq for PostgresIndex
Source§impl PartialOrd for PostgresIndex
impl PartialOrd for PostgresIndex
Source§impl Serialize for PostgresIndex
impl Serialize for PostgresIndex
impl StructuralPartialEq for PostgresIndex
Auto Trait Implementations§
impl Freeze for PostgresIndex
impl RefUnwindSafe for PostgresIndex
impl Send for PostgresIndex
impl Sync for PostgresIndex
impl Unpin for PostgresIndex
impl UnsafeUnpin for PostgresIndex
impl UnwindSafe for PostgresIndex
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more