pub struct Statistic {
pub qname: QualifiedName,
pub target: QualifiedName,
pub kinds: StatisticKinds,
pub columns: Vec<StatisticColumn>,
pub statistics_target: Option<i32>,
pub owner: Option<Identifier>,
pub comment: Option<String>,
}Expand description
Declarative model of a Postgres CREATE STATISTICS object.
Fields§
§qname: QualifiedNameSchema-qualified statistic name (explicit names required).
target: QualifiedNameThe target table whose columns are correlated.
kinds: StatisticKindsWhich kinds are enabled. At least one must be true (canon enforces).
columns: Vec<StatisticColumn>Column / expression list. Sorted by canon; deduped.
statistics_target: Option<i32>ALTER STATISTICS s SET STATISTICS n — analyze target.
None = unmanaged / use PG default (-1).
owner: Option<Identifier>Object owner. None = unmanaged (v0.3.1 lenient pattern).
comment: Option<String>Optional COMMENT ON STATISTICS.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Statistic
impl<'de> Deserialize<'de> for Statistic
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 Statistic
impl StructuralPartialEq for Statistic
Auto Trait Implementations§
impl Freeze for Statistic
impl RefUnwindSafe for Statistic
impl Send for Statistic
impl Sync for Statistic
impl Unpin for Statistic
impl UnsafeUnpin for Statistic
impl UnwindSafe for Statistic
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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