pub struct DataCatalogConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build_inner().
Implementations§
Source§impl<S: State> DataCatalogConfigBuilder<S>
impl<S: State> DataCatalogConfigBuilder<S>
Sourcepub fn path(self, value: String) -> DataCatalogConfigBuilder<SetPath<S>>where
S::Path: IsUnset,
pub fn path(self, value: String) -> DataCatalogConfigBuilder<SetPath<S>>where
S::Path: IsUnset,
Required.
The path to the data catalog.
Sourcepub fn name(self, value: String) -> DataCatalogConfigBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(self, value: String) -> DataCatalogConfigBuilder<SetName<S>>where
S::Name: IsUnset,
Sourcepub fn maybe_name(
self,
value: Option<String>,
) -> DataCatalogConfigBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<String>,
) -> DataCatalogConfigBuilder<SetName<S>>where
S::Name: IsUnset,
Sourcepub fn fs_protocol(
self,
value: String,
) -> DataCatalogConfigBuilder<SetFsProtocol<S>>where
S::FsProtocol: IsUnset,
pub fn fs_protocol(
self,
value: String,
) -> DataCatalogConfigBuilder<SetFsProtocol<S>>where
S::FsProtocol: IsUnset,
Sourcepub fn maybe_fs_protocol(
self,
value: Option<String>,
) -> DataCatalogConfigBuilder<SetFsProtocol<S>>where
S::FsProtocol: IsUnset,
pub fn maybe_fs_protocol(
self,
value: Option<String>,
) -> DataCatalogConfigBuilder<SetFsProtocol<S>>where
S::FsProtocol: IsUnset,
Sourcepub fn catalog_backend(
self,
value: CatalogBackendType,
) -> DataCatalogConfigBuilder<SetCatalogBackend<S>>where
S::CatalogBackend: IsUnset,
pub fn catalog_backend(
self,
value: CatalogBackendType,
) -> DataCatalogConfigBuilder<SetCatalogBackend<S>>where
S::CatalogBackend: IsUnset,
Sourcepub fn maybe_catalog_backend(
self,
value: Option<CatalogBackendType>,
) -> DataCatalogConfigBuilder<SetCatalogBackend<S>>where
S::CatalogBackend: IsUnset,
pub fn maybe_catalog_backend(
self,
value: Option<CatalogBackendType>,
) -> DataCatalogConfigBuilder<SetCatalogBackend<S>>where
S::CatalogBackend: IsUnset,
Sourcepub fn batch_size(
self,
value: usize,
) -> DataCatalogConfigBuilder<SetBatchSize<S>>where
S::BatchSize: IsUnset,
pub fn batch_size(
self,
value: usize,
) -> DataCatalogConfigBuilder<SetBatchSize<S>>where
S::BatchSize: IsUnset,
Sourcepub fn maybe_batch_size(
self,
value: Option<usize>,
) -> DataCatalogConfigBuilder<SetBatchSize<S>>where
S::BatchSize: IsUnset,
pub fn maybe_batch_size(
self,
value: Option<usize>,
) -> DataCatalogConfigBuilder<SetBatchSize<S>>where
S::BatchSize: IsUnset,
Sourcepub fn compression(
self,
value: CatalogCompression,
) -> DataCatalogConfigBuilder<SetCompression<S>>where
S::Compression: IsUnset,
pub fn compression(
self,
value: CatalogCompression,
) -> DataCatalogConfigBuilder<SetCompression<S>>where
S::Compression: IsUnset,
Sourcepub fn maybe_compression(
self,
value: Option<CatalogCompression>,
) -> DataCatalogConfigBuilder<SetCompression<S>>where
S::Compression: IsUnset,
pub fn maybe_compression(
self,
value: Option<CatalogCompression>,
) -> DataCatalogConfigBuilder<SetCompression<S>>where
S::Compression: IsUnset,
Sourcepub fn max_row_group_size(
self,
value: usize,
) -> DataCatalogConfigBuilder<SetMaxRowGroupSize<S>>where
S::MaxRowGroupSize: IsUnset,
pub fn max_row_group_size(
self,
value: usize,
) -> DataCatalogConfigBuilder<SetMaxRowGroupSize<S>>where
S::MaxRowGroupSize: IsUnset,
Sourcepub fn maybe_max_row_group_size(
self,
value: Option<usize>,
) -> DataCatalogConfigBuilder<SetMaxRowGroupSize<S>>where
S::MaxRowGroupSize: IsUnset,
pub fn maybe_max_row_group_size(
self,
value: Option<usize>,
) -> DataCatalogConfigBuilder<SetMaxRowGroupSize<S>>where
S::MaxRowGroupSize: IsUnset,
Sourcepub fn params(self, value: Params) -> DataCatalogConfigBuilder<SetParams<S>>where
S::Params: IsUnset,
pub fn params(self, value: Params) -> DataCatalogConfigBuilder<SetParams<S>>where
S::Params: IsUnset,
Sourcepub fn maybe_params(
self,
value: Option<Params>,
) -> DataCatalogConfigBuilder<SetParams<S>>where
S::Params: IsUnset,
pub fn maybe_params(
self,
value: Option<Params>,
) -> DataCatalogConfigBuilder<SetParams<S>>where
S::Params: IsUnset,
Sourcepub fn fs_rust_storage_options(
self,
value: AHashMap<String, SecretString>,
) -> DataCatalogConfigBuilder<SetFsRustStorageOptions<S>>where
S::FsRustStorageOptions: IsUnset,
pub fn fs_rust_storage_options(
self,
value: AHashMap<String, SecretString>,
) -> DataCatalogConfigBuilder<SetFsRustStorageOptions<S>>where
S::FsRustStorageOptions: IsUnset,
Sourcepub fn maybe_fs_rust_storage_options(
self,
value: Option<AHashMap<String, SecretString>>,
) -> DataCatalogConfigBuilder<SetFsRustStorageOptions<S>>where
S::FsRustStorageOptions: IsUnset,
pub fn maybe_fs_rust_storage_options(
self,
value: Option<AHashMap<String, SecretString>>,
) -> DataCatalogConfigBuilder<SetFsRustStorageOptions<S>>where
S::FsRustStorageOptions: IsUnset,
Sourcepub fn read_only(self, value: bool) -> DataCatalogConfigBuilder<SetReadOnly<S>>where
S::ReadOnly: IsUnset,
pub fn read_only(self, value: bool) -> DataCatalogConfigBuilder<SetReadOnly<S>>where
S::ReadOnly: IsUnset,
Sourcepub fn maybe_read_only(
self,
value: Option<bool>,
) -> DataCatalogConfigBuilder<SetReadOnly<S>>where
S::ReadOnly: IsUnset,
pub fn maybe_read_only(
self,
value: Option<bool>,
) -> DataCatalogConfigBuilder<SetReadOnly<S>>where
S::ReadOnly: IsUnset,
Source§impl<S: IsComplete> DataCatalogConfigBuilder<S>
impl<S: IsComplete> DataCatalogConfigBuilder<S>
Sourcepub fn build(self) -> ConfigResult<DataCatalogConfig>
pub fn build(self) -> ConfigResult<DataCatalogConfig>
Validates and builds the DataCatalogConfig.
§Errors
Returns an error if any field fails validation (see DataCatalogConfig::validate).
Auto Trait Implementations§
impl<S> Freeze for DataCatalogConfigBuilder<S>
impl<S> RefUnwindSafe for DataCatalogConfigBuilder<S>
impl<S> Send for DataCatalogConfigBuilder<S>
impl<S> Sync for DataCatalogConfigBuilder<S>
impl<S> Unpin for DataCatalogConfigBuilder<S>
impl<S> UnsafeUnpin for DataCatalogConfigBuilder<S>
impl<S> UnwindSafe for DataCatalogConfigBuilder<S>
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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