#[non_exhaustive]pub struct StarburstParametersBuilder { /* private fields */ }Expand description
A builder for StarburstParameters.
Implementations§
source§impl StarburstParametersBuilder
impl StarburstParametersBuilder
sourcepub fn host(self, input: impl Into<String>) -> Self
pub fn host(self, input: impl Into<String>) -> Self
The host name of the Starburst data source.
This field is required.sourcepub fn set_host(self, input: Option<String>) -> Self
pub fn set_host(self, input: Option<String>) -> Self
The host name of the Starburst data source.
sourcepub fn port(self, input: i32) -> Self
pub fn port(self, input: i32) -> Self
The port for the Starburst data source.
This field is required.sourcepub fn catalog(self, input: impl Into<String>) -> Self
pub fn catalog(self, input: impl Into<String>) -> Self
The catalog name for the Starburst data source.
This field is required.sourcepub fn set_catalog(self, input: Option<String>) -> Self
pub fn set_catalog(self, input: Option<String>) -> Self
The catalog name for the Starburst data source.
sourcepub fn get_catalog(&self) -> &Option<String>
pub fn get_catalog(&self) -> &Option<String>
The catalog name for the Starburst data source.
sourcepub fn product_type(self, input: StarburstProductType) -> Self
pub fn product_type(self, input: StarburstProductType) -> Self
The product type for the Starburst data source.
sourcepub fn set_product_type(self, input: Option<StarburstProductType>) -> Self
pub fn set_product_type(self, input: Option<StarburstProductType>) -> Self
The product type for the Starburst data source.
sourcepub fn get_product_type(&self) -> &Option<StarburstProductType>
pub fn get_product_type(&self) -> &Option<StarburstProductType>
The product type for the Starburst data source.
sourcepub fn build(self) -> Result<StarburstParameters, BuildError>
pub fn build(self) -> Result<StarburstParameters, BuildError>
Consumes the builder and constructs a StarburstParameters.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for StarburstParametersBuilder
impl Clone for StarburstParametersBuilder
source§fn clone(&self) -> StarburstParametersBuilder
fn clone(&self) -> StarburstParametersBuilder
Returns a copy of the value. Read more
1.0.0 · 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 StarburstParametersBuilder
impl Debug for StarburstParametersBuilder
source§impl Default for StarburstParametersBuilder
impl Default for StarburstParametersBuilder
source§fn default() -> StarburstParametersBuilder
fn default() -> StarburstParametersBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for StarburstParametersBuilder
impl PartialEq for StarburstParametersBuilder
source§fn eq(&self, other: &StarburstParametersBuilder) -> bool
fn eq(&self, other: &StarburstParametersBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for StarburstParametersBuilder
Auto Trait Implementations§
impl RefUnwindSafe for StarburstParametersBuilder
impl Send for StarburstParametersBuilder
impl Sync for StarburstParametersBuilder
impl Unpin for StarburstParametersBuilder
impl UnwindSafe for StarburstParametersBuilder
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.