Struct RemoteStorageSettingsBuilder

Source
pub struct RemoteStorageSettingsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<S: State> RemoteStorageSettingsBuilder<S>

Source

pub fn build(self) -> RemoteStorageSettings
where S: IsComplete,

Finish building and return the requested object

Source

pub fn not_immutable(self) -> RemoteStorageSettingsBuilder<SetNotImmutable<S>>
where S::NotImmutable: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_not_immutable( self, value: Option<()>, ) -> RemoteStorageSettingsBuilder<SetNotImmutable<S>>
where S::NotImmutable: IsUnset,

Optional (Some / Option setters).

Source

pub fn path( self, value: impl Into<PathBuf>, ) -> RemoteStorageSettingsBuilder<SetPath<S>>
where S::Path: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_path( self, value: Option<impl Into<PathBuf>>, ) -> RemoteStorageSettingsBuilder<SetPath<S>>
where S::Path: IsUnset,

Optional (Some / Option setters).

Source

pub fn host(self, value: String) -> RemoteStorageSettingsBuilder<SetHost<S>>
where S::Host: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_host( self, value: Option<String>, ) -> RemoteStorageSettingsBuilder<SetHost<S>>
where S::Host: IsUnset,

Optional (Some / Option setters).

Source

pub fn port(self, value: u16) -> RemoteStorageSettingsBuilder<SetPort<S>>
where S::Port: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_port( self, value: Option<u16>, ) -> RemoteStorageSettingsBuilder<SetPort<S>>
where S::Port: IsUnset,

Optional (Some / Option setters).

Source

pub fn auth( self, value: ConnectionAuth, ) -> RemoteStorageSettingsBuilder<SetAuth<S>>
where S::Auth: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_auth( self, value: Option<ConnectionAuth>, ) -> RemoteStorageSettingsBuilder<SetAuth<S>>
where S::Auth: IsUnset,

Optional (Some / Option setters).

Source

pub fn database( self, value: String, ) -> RemoteStorageSettingsBuilder<SetDatabase<S>>
where S::Database: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_database( self, value: Option<String>, ) -> RemoteStorageSettingsBuilder<SetDatabase<S>>
where S::Database: IsUnset,

Optional (Some / Option setters).

Source

pub fn schema(self, value: String) -> RemoteStorageSettingsBuilder<SetSchema<S>>
where S::Schema: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_schema( self, value: Option<String>, ) -> RemoteStorageSettingsBuilder<SetSchema<S>>
where S::Schema: IsUnset,

Optional (Some / Option setters).

Source

pub fn table_prefix( self, value: String, ) -> RemoteStorageSettingsBuilder<SetTablePrefix<S>>
where S::TablePrefix: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_table_prefix( self, value: Option<String>, ) -> RemoteStorageSettingsBuilder<SetTablePrefix<S>>
where S::TablePrefix: IsUnset,

Optional (Some / Option setters).

Source

pub fn properties( self, value: Properties, ) -> RemoteStorageSettingsBuilder<SetProperties<S>>
where S::Properties: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_properties( self, value: Option<Properties>, ) -> RemoteStorageSettingsBuilder<SetProperties<S>>
where S::Properties: IsUnset,

Optional (Some / Option setters).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.