pub struct LibSqlConfigBuilder { /* private fields */ }
Implementations§
Source§impl LibSqlConfigBuilder
impl LibSqlConfigBuilder
pub fn new() -> Self
pub fn remote(self) -> Self
pub fn embedded_replica(self) -> Self
pub fn url(self, url: impl Into<String>) -> Self
pub fn auth_token(self, token: impl Into<String>) -> Self
pub fn local_path(self, path: impl Into<String>) -> Self
pub fn sync_interval(self, interval: Duration) -> Self
pub fn encryption_key(self, key: impl Into<String>) -> Self
pub fn build(self) -> Result<LibSqlConfig, ConfigError>
Trait Implementations§
Source§impl Debug for LibSqlConfigBuilder
impl Debug for LibSqlConfigBuilder
Source§impl Default for LibSqlConfigBuilder
impl Default for LibSqlConfigBuilder
Source§fn default() -> LibSqlConfigBuilder
fn default() -> LibSqlConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LibSqlConfigBuilder
impl RefUnwindSafe for LibSqlConfigBuilder
impl Send for LibSqlConfigBuilder
impl Sync for LibSqlConfigBuilder
impl Unpin for LibSqlConfigBuilder
impl UnwindSafe for LibSqlConfigBuilder
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>
Source§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