pub struct ViewCreation {
pub name: String,
pub location: String,
pub representations: ViewRepresentations,
pub schema: Schema,
pub properties: HashMap<String, String>,
pub default_namespace: NamespaceIdent,
pub default_catalog: Option<String>,
pub summary: HashMap<String, String>,
}Expand description
ViewCreation represents the creation of a view in the catalog.
Fields§
§name: StringThe name of the view.
location: StringThe view’s base location; used to create metadata file locations
representations: ViewRepresentationsRepresentations for the view.
schema: SchemaThe schema of the view.
properties: HashMap<String, String>The properties of the view.
default_namespace: NamespaceIdentThe default namespace to use when a reference in the SELECT is a single identifier
default_catalog: Option<String>Default catalog to use when a reference in the SELECT does not contain a catalog
summary: HashMap<String, String>A string to string map of summary metadata about the version Typical keys are “engine-name” and “engine-version”
Implementations§
Source§impl ViewCreation
impl ViewCreation
Sourcepub fn builder() -> ViewCreationBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> ViewCreationBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building ViewCreation.
On the builder, call .name(...), .location(...), .representations(...), .schema(...), .properties(...)(optional), .default_namespace(...), .default_catalog(...)(optional), .summary(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ViewCreation.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ViewCreation
impl RefUnwindSafe for ViewCreation
impl Send for ViewCreation
impl Sync for ViewCreation
impl Unpin for ViewCreation
impl UnwindSafe for ViewCreation
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
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> ⓘ
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> ⓘ
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