pub struct RelationState {
pub id: ObjectId,
pub columns: Vec<Column>,
pub generation: u64,
pub estimated_rows: Option<u64>,
pub relpages: Option<u64>,
pub kind: RelationKind,
pub persistence: Persistence,
pub triggers: HashSet<String>,
pub policies: HashSet<String>,
pub last_analyze: Option<String>,
pub last_autoanalyze: Option<String>,
pub created_at_tx_depth: usize,
}Fields§
§id: ObjectId§columns: Vec<Column>§generation: u64§estimated_rows: Option<u64>§relpages: Option<u64>§kind: RelationKind§persistence: Persistence§triggers: HashSet<String>§policies: HashSet<String>§last_analyze: Option<String>§last_autoanalyze: Option<String>§created_at_tx_depth: usizeImplementations§
Source§impl RelationState
impl RelationState
pub fn new( id: ObjectId, generation: u64, estimated_rows: Option<u64>, kind: RelationKind, persistence: Persistence, created_at_tx_depth: usize, ) -> Self
pub fn apply_column_action(&mut self, action: &ColumnAction)
pub fn has_column(&self, name: &str) -> bool
pub fn get_column(&self, name: &str) -> Option<&Column>
pub fn is_stale(&self) -> bool
Trait Implementations§
Source§impl Clone for RelationState
impl Clone for RelationState
Source§fn clone(&self) -> RelationState
fn clone(&self) -> RelationState
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 RelationState
impl Debug for RelationState
Source§impl Default for RelationState
impl Default for RelationState
Source§impl<'de> Deserialize<'de> for RelationState
impl<'de> Deserialize<'de> for RelationState
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 PartialEq for RelationState
impl PartialEq for RelationState
Source§fn eq(&self, other: &RelationState) -> bool
fn eq(&self, other: &RelationState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RelationState
impl Serialize for RelationState
impl StructuralPartialEq for RelationState
Auto Trait Implementations§
impl Freeze for RelationState
impl RefUnwindSafe for RelationState
impl Send for RelationState
impl Sync for RelationState
impl Unpin for RelationState
impl UnsafeUnpin for RelationState
impl UnwindSafe for RelationState
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