pub struct IndexStorageOptions {
pub fillfactor: Option<u32>,
pub fastupdate: Option<bool>,
pub gin_pending_list_limit: Option<u64>,
pub buffering: Option<BufferingMode>,
pub deduplicate_items: Option<bool>,
pub pages_per_range: Option<u32>,
pub autosummarize: Option<bool>,
pub extra: BTreeMap<String, String>,
}Expand description
Storage options for indexes. Valid keys depend on access method; parse-time validation enforces per-AM rules.
Fields§
§fillfactor: Option<u32>fillfactor — target index page density; valid range depends on access method.
fastupdate: Option<bool>fastupdate — GIN: defer index updates via a pending list.
gin_pending_list_limit: Option<u64>gin_pending_list_limit — GIN: max size of pending list before cleanup (bytes).
buffering: Option<BufferingMode>buffering — GiST / SP-GiST: controls buffered build strategy.
deduplicate_items: Option<bool>deduplicate_items — B-tree (PG 13+): enable deduplication of posting lists.
pages_per_range: Option<u32>pages_per_range — BRIN: number of heap pages per BRIN range.
autosummarize: Option<bool>autosummarize — BRIN: auto-summarize when pages_per_range fills.
extra: BTreeMap<String, String>Unknown / extension-registered options. Always sorted by key (BTreeMap).
Implementations§
Trait Implementations§
Source§impl Clone for IndexStorageOptions
impl Clone for IndexStorageOptions
Source§fn clone(&self) -> IndexStorageOptions
fn clone(&self) -> IndexStorageOptions
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 IndexStorageOptions
impl Debug for IndexStorageOptions
Source§impl Default for IndexStorageOptions
impl Default for IndexStorageOptions
Source§fn default() -> IndexStorageOptions
fn default() -> IndexStorageOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IndexStorageOptions
impl<'de> Deserialize<'de> for IndexStorageOptions
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 Hash for IndexStorageOptions
impl Hash for IndexStorageOptions
Source§impl Ord for IndexStorageOptions
impl Ord for IndexStorageOptions
Source§fn cmp(&self, other: &IndexStorageOptions) -> Ordering
fn cmp(&self, other: &IndexStorageOptions) -> Ordering
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
Source§impl PartialEq for IndexStorageOptions
impl PartialEq for IndexStorageOptions
Source§fn eq(&self, other: &IndexStorageOptions) -> bool
fn eq(&self, other: &IndexStorageOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for IndexStorageOptions
impl PartialOrd for IndexStorageOptions
Source§impl Serialize for IndexStorageOptions
impl Serialize for IndexStorageOptions
impl Eq for IndexStorageOptions
impl StructuralPartialEq for IndexStorageOptions
Auto Trait Implementations§
impl Freeze for IndexStorageOptions
impl RefUnwindSafe for IndexStorageOptions
impl Send for IndexStorageOptions
impl Sync for IndexStorageOptions
impl Unpin for IndexStorageOptions
impl UnsafeUnpin for IndexStorageOptions
impl UnwindSafe for IndexStorageOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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