pub struct RestCatalogConfig { /* private fields */ }Expand description
REST catalog configuration.
Construction validates the endpoint and all resource ceilings. Credentials
are deliberately omitted from Debug.
Implementations§
Source§impl RestCatalogConfig
impl RestCatalogConfig
Sourcepub fn new(base_url: impl AsRef<str>) -> CatalogResult<Self>
pub fn new(base_url: impl AsRef<str>) -> CatalogResult<Self>
Create a validated configuration for an Iceberg REST catalog.
Sourcepub fn with_warehouse(self, warehouse: impl Into<String>) -> CatalogResult<Self>
pub fn with_warehouse(self, warehouse: impl Into<String>) -> CatalogResult<Self>
Select the warehouse passed to the mandatory /v1/config request.
Sourcepub fn with_catalog_prefix(
self,
prefix: impl Into<String>,
) -> CatalogResult<Self>
pub fn with_catalog_prefix( self, prefix: impl Into<String>, ) -> CatalogResult<Self>
Supply a client-side catalog prefix.
Server defaults are applied first and server overrides are applied last, as required by the Iceberg REST configuration contract.
Sourcepub fn with_bearer_token(self, token: impl Into<String>) -> CatalogResult<Self>
pub fn with_bearer_token(self, token: impl Into<String>) -> CatalogResult<Self>
Attach a bearer token to configuration and catalog requests.
Sourcepub fn with_timeout(self, timeout: Duration) -> CatalogResult<Self>
pub fn with_timeout(self, timeout: Duration) -> CatalogResult<Self>
Set the end-to-end request timeout.
Sourcepub fn with_page_size(self, page_size: u32) -> CatalogResult<Self>
pub fn with_page_size(self, page_size: u32) -> CatalogResult<Self>
Set the requested list page size.
Sourcepub fn with_max_response_bytes(self, limit: usize) -> CatalogResult<Self>
pub fn with_max_response_bytes(self, limit: usize) -> CatalogResult<Self>
Set the maximum successful response body retained in memory.
pub fn base_url(&self) -> &Url
pub fn warehouse(&self) -> Option<&str>
pub fn catalog_prefix(&self) -> Option<&str>
pub fn timeout(&self) -> Duration
pub fn page_size(&self) -> u32
pub fn max_response_bytes(&self) -> usize
Trait Implementations§
Source§impl Clone for RestCatalogConfig
impl Clone for RestCatalogConfig
Source§fn clone(&self) -> RestCatalogConfig
fn clone(&self) -> RestCatalogConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RestCatalogConfig
impl RefUnwindSafe for RestCatalogConfig
impl Send for RestCatalogConfig
impl Sync for RestCatalogConfig
impl Unpin for RestCatalogConfig
impl UnsafeUnpin for RestCatalogConfig
impl UnwindSafe for RestCatalogConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request