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: String
The name of the view.
location: String
The view’s base location; used to create metadata file locations
representations: ViewRepresentations
Representations for the view.
schema: Schema
The schema of the view.
properties: HashMap<String, String>
The properties of the view.
default_namespace: NamespaceIdent
The 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> 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