pub struct IndexInfo {
pub name: String,
pub table_name: String,
pub unique: bool,
pub columns: Vec<String>,
pub partial_predicate: Option<String>,
}Expand description
Metadata for a single index in the database.
Fields§
§name: StringThe index name as recorded in sqlite_master.
table_name: StringThe table this index belongs to.
unique: boolWhether this index enforces a uniqueness constraint.
columns: Vec<String>The ordered list of column names covered by this index.
partial_predicate: Option<String>The WHERE-clause predicate for partial indexes, or None for full
indexes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IndexInfo
impl<'de> Deserialize<'de> for IndexInfo
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 JsonSchema for IndexInfo
impl JsonSchema for IndexInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for IndexInfo
impl Ord for IndexInfo
Source§impl PartialOrd for IndexInfo
impl PartialOrd for IndexInfo
impl Eq for IndexInfo
impl StructuralPartialEq for IndexInfo
Auto Trait Implementations§
impl Freeze for IndexInfo
impl RefUnwindSafe for IndexInfo
impl Send for IndexInfo
impl Sync for IndexInfo
impl Unpin for IndexInfo
impl UnsafeUnpin for IndexInfo
impl UnwindSafe for IndexInfo
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