pub struct StoredViewDefinition {
pub object_id: [u8; 16],
pub query: QueryPlan,
pub output_columns: Option<Vec<String>>,
pub persistence: RelationPersistence,
pub options: Vec<(String, String)>,
pub kind: StoredViewKind,
pub materialized_rows: Vec<ResultRow>,
pub materialized_column_types: Vec<Option<ColumnType>>,
pub populated: bool,
}Expand description
Query-definition JSON carries no authorization state. Restoration supplies validated security before publishing a view.
Fields§
§object_id: [u8; 16]Stable logical relation identity. Renames and replacement preserve it; a zero value marks a legacy catalog row upgraded during initial open.
query: QueryPlan§output_columns: Option<Vec<String>>§persistence: RelationPersistence§options: Vec<(String, String)>§kind: StoredViewKind§materialized_rows: Vec<ResultRow>§materialized_column_types: Vec<Option<ColumnType>>§populated: boolTrait Implementations§
Source§impl Clone for StoredViewDefinition
impl Clone for StoredViewDefinition
Source§impl Debug for StoredViewDefinition
impl Debug for StoredViewDefinition
Source§impl<'de> Deserialize<'de> for StoredViewDefinition
impl<'de> Deserialize<'de> for StoredViewDefinition
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
Auto Trait Implementations§
impl Freeze for StoredViewDefinition
impl RefUnwindSafe for StoredViewDefinition
impl Send for StoredViewDefinition
impl Sync for StoredViewDefinition
impl Unpin for StoredViewDefinition
impl UnsafeUnpin for StoredViewDefinition
impl UnwindSafe for StoredViewDefinition
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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