Skip to main content

ViewWithOptionDef

Struct ViewWithOptionDef 

Source
pub struct ViewWithOptionDef {
Show 21 fields pub check_option: Option<&'static str>, pub security_barrier: bool, pub security_invoker: bool, pub fillfactor: Option<i32>, pub toast_tuple_target: Option<i32>, pub parallel_workers: Option<i32>, pub autovacuum_enabled: Option<bool>, pub vacuum_index_cleanup: Option<&'static str>, pub vacuum_truncate: Option<bool>, pub autovacuum_vacuum_threshold: Option<i32>, pub autovacuum_vacuum_scale_factor: Option<i32>, pub autovacuum_vacuum_cost_delay: Option<i32>, pub autovacuum_vacuum_cost_limit: Option<i32>, pub autovacuum_freeze_min_age: Option<i64>, pub autovacuum_freeze_max_age: Option<i64>, pub autovacuum_freeze_table_age: Option<i64>, pub autovacuum_multixact_freeze_min_age: Option<i64>, pub autovacuum_multixact_freeze_max_age: Option<i64>, pub autovacuum_multixact_freeze_table_age: Option<i64>, pub log_autovacuum_min_duration: Option<i32>, pub user_catalog_table: Option<bool>,
}
Expand description

Const-friendly view WITH options definition

Fields§

§check_option: Option<&'static str>

CHECK OPTION (‘local’ | ‘cascaded’)

§security_barrier: bool

Security barrier flag

§security_invoker: bool

Security invoker flag

§fillfactor: Option<i32>

Fillfactor (for materialized views)

§toast_tuple_target: Option<i32>

Toast tuple target (for materialized views)

§parallel_workers: Option<i32>

Parallel workers (for materialized views)

§autovacuum_enabled: Option<bool>

Autovacuum enabled (for materialized views)

§vacuum_index_cleanup: Option<&'static str>

Vacuum index cleanup (for materialized views): ‘auto’ | ‘on’ | ‘off’

§vacuum_truncate: Option<bool>

Vacuum truncate (for materialized views)

§autovacuum_vacuum_threshold: Option<i32>

Autovacuum vacuum threshold (for materialized views)

§autovacuum_vacuum_scale_factor: Option<i32>

Autovacuum vacuum scale factor (for materialized views)

§autovacuum_vacuum_cost_delay: Option<i32>

Autovacuum vacuum cost delay (for materialized views)

§autovacuum_vacuum_cost_limit: Option<i32>

Autovacuum vacuum cost limit (for materialized views)

§autovacuum_freeze_min_age: Option<i64>

Autovacuum freeze min age (for materialized views)

§autovacuum_freeze_max_age: Option<i64>

Autovacuum freeze max age (for materialized views)

§autovacuum_freeze_table_age: Option<i64>

Autovacuum freeze table age (for materialized views)

§autovacuum_multixact_freeze_min_age: Option<i64>

Autovacuum multixact freeze min age (for materialized views)

§autovacuum_multixact_freeze_max_age: Option<i64>

Autovacuum multixact freeze max age (for materialized views)

§autovacuum_multixact_freeze_table_age: Option<i64>

Autovacuum multixact freeze table age (for materialized views)

§log_autovacuum_min_duration: Option<i32>

Log autovacuum min duration (for materialized views)

§user_catalog_table: Option<bool>

User catalog table (for materialized views)

Implementations§

Source§

impl ViewWithOptionDef

Source

pub const fn new() -> Self

Create a new view WITH options definition

Source

pub const fn check_option(self, option: &'static str) -> Self

Set CHECK OPTION

Source

pub const fn security_barrier(self) -> Self

Set security barrier

Source

pub const fn security_invoker(self) -> Self

Set security invoker

Source

pub const fn fillfactor(self, value: i32) -> Self

Set fillfactor (for materialized views)

Source

pub const fn toast_tuple_target(self, value: i32) -> Self

Set toast tuple target (for materialized views)

Source

pub const fn parallel_workers(self, value: i32) -> Self

Set parallel workers (for materialized views)

Source

pub const fn autovacuum_enabled(self, value: bool) -> Self

Set autovacuum enabled (for materialized views)

Source

pub const fn vacuum_index_cleanup(self, value: &'static str) -> Self

Set vacuum index cleanup (for materialized views): “auto”, “on”, or “off”

Source

pub const fn vacuum_truncate(self, value: bool) -> Self

Set vacuum truncate (for materialized views)

Source

pub const fn autovacuum_vacuum_threshold(self, value: i32) -> Self

Set autovacuum vacuum threshold (for materialized views)

Source

pub const fn autovacuum_vacuum_scale_factor(self, value: i32) -> Self

Set autovacuum vacuum scale factor (for materialized views)

Source

pub const fn autovacuum_vacuum_cost_delay(self, value: i32) -> Self

Set autovacuum vacuum cost delay (for materialized views)

Source

pub const fn autovacuum_vacuum_cost_limit(self, value: i32) -> Self

Set autovacuum vacuum cost limit (for materialized views)

Source

pub const fn autovacuum_freeze_min_age(self, value: i64) -> Self

Set autovacuum freeze min age (for materialized views)

Source

pub const fn autovacuum_freeze_max_age(self, value: i64) -> Self

Set autovacuum freeze max age (for materialized views)

Source

pub const fn autovacuum_freeze_table_age(self, value: i64) -> Self

Set autovacuum freeze table age (for materialized views)

Source

pub const fn autovacuum_multixact_freeze_min_age(self, value: i64) -> Self

Set autovacuum multixact freeze min age (for materialized views)

Source

pub const fn autovacuum_multixact_freeze_max_age(self, value: i64) -> Self

Set autovacuum multixact freeze max age (for materialized views)

Source

pub const fn autovacuum_multixact_freeze_table_age(self, value: i64) -> Self

Set autovacuum multixact freeze table age (for materialized views)

Source

pub const fn log_autovacuum_min_duration(self, value: i32) -> Self

Set log autovacuum min duration (for materialized views)

Source

pub const fn user_catalog_table(self, value: bool) -> Self

Set user catalog table (for materialized views)

Source

pub const fn into_view_with_option(self) -> ViewWithOption

Convert to runtime type

Trait Implementations§

Source§

impl Clone for ViewWithOptionDef

Source§

fn clone(&self) -> ViewWithOptionDef

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ViewWithOptionDef

Source§

impl Debug for ViewWithOptionDef

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ViewWithOptionDef

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for ViewWithOptionDef

Source§

impl From<ViewWithOptionDef> for ViewWithOption

Source§

fn from(def: ViewWithOptionDef) -> Self

Converts to this type from the input type.
Source§

impl Hash for ViewWithOptionDef

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ViewWithOptionDef

Source§

fn eq(&self, other: &ViewWithOptionDef) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ViewWithOptionDef

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.