pub struct SyncConfigBuilder { /* private fields */ }Expand description
Builder for sync configuration
Implementations§
Source§impl SyncConfigBuilder
impl SyncConfigBuilder
Sourcepub fn endpoint(self, endpoint: impl Into<String>) -> Self
pub fn endpoint(self, endpoint: impl Into<String>) -> Self
Set the API endpoint (default: production)
Sourcepub fn use_staging(self) -> Self
pub fn use_staging(self) -> Self
Use staging endpoint for testing
Sourcepub fn org_id_uuid(self, org_id: Uuid) -> Self
pub fn org_id_uuid(self, org_id: Uuid) -> Self
Set organization ID from UUID
Sourcepub fn app_id_uuid(self, app_id: Uuid) -> Self
pub fn app_id_uuid(self, app_id: Uuid) -> Self
Set application ID from UUID
Sourcepub fn batch_size(self, batch_size: usize) -> Self
pub fn batch_size(self, batch_size: usize) -> Self
Set batch size (1-1000)
Sourcepub fn max_retries(self, max_retries: u32) -> Self
pub fn max_retries(self, max_retries: u32) -> Self
Set maximum retry attempts
Sourcepub fn sync_interval_secs(self, interval: u64) -> Self
pub fn sync_interval_secs(self, interval: u64) -> Self
Set sync interval in seconds (0 = manual only)
Sourcepub fn respect_dnt(self, respect: bool) -> Self
pub fn respect_dnt(self, respect: bool) -> Self
Enable/disable DNT (Do Not Track) check
Sourcepub fn build(self) -> Result<SyncConfig>
pub fn build(self) -> Result<SyncConfig>
Build the configuration
Trait Implementations§
Source§impl Debug for SyncConfigBuilder
impl Debug for SyncConfigBuilder
Source§impl Default for SyncConfigBuilder
impl Default for SyncConfigBuilder
Source§fn default() -> SyncConfigBuilder
fn default() -> SyncConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SyncConfigBuilder
impl RefUnwindSafe for SyncConfigBuilder
impl Send for SyncConfigBuilder
impl Sync for SyncConfigBuilder
impl Unpin 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