pub struct SyncConfigBuilder { /* private fields */ }Implementations§
Source§impl SyncConfigBuilder
impl SyncConfigBuilder
pub fn new( tenant_id: impl Into<String>, api_url: impl Into<String>, api_token: impl Into<String>, services_path: impl Into<String>, ) -> Self
pub const fn with_direction(self, direction: SyncDirection) -> Self
pub const fn with_dry_run(self, dry_run: bool) -> Self
pub const fn with_verbose(self, verbose: bool) -> Self
pub fn with_hostname(self, hostname: Option<String>) -> Self
pub fn with_sync_token(self, sync_token: Option<String>) -> Self
pub fn with_local_database_url(self, url: impl Into<String>) -> Self
pub fn build(self) -> SyncConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncConfigBuilder
impl RefUnwindSafe for SyncConfigBuilder
impl Send for SyncConfigBuilder
impl Sync for SyncConfigBuilder
impl Unpin for SyncConfigBuilder
impl UnsafeUnpin for SyncConfigBuilder
impl UnwindSafe for SyncConfigBuilder
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> 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