pub struct SyncConfig {
pub endpoint: String,
pub org_id: Uuid,
pub app_id: Uuid,
pub token: String,
pub secret: String,
pub batch_size: usize,
pub max_retries: u32,
pub sync_interval_secs: u64,
pub respect_dnt: bool,
}Expand description
Sync configuration
Fields§
§endpoint: StringAPI endpoint base URL
org_id: UuidOrganization ID
app_id: UuidApplication ID
token: StringAPI token
secret: StringAPI secret for HMAC signing
batch_size: usizeBatch size (1-1000)
max_retries: u32Maximum retry attempts
sync_interval_secs: u64Sync interval in seconds (0 = manual sync only)
respect_dnt: boolEnable DNT (Do Not Track) check
Implementations§
Source§impl SyncConfig
impl SyncConfig
Sourcepub fn builder() -> SyncConfigBuilder
pub fn builder() -> SyncConfigBuilder
Create a new sync configuration builder
Sourcepub fn ingestion_url(&self) -> String
pub fn ingestion_url(&self) -> String
Get the full ingestion URL
Trait Implementations§
Source§impl Clone for SyncConfig
impl Clone for SyncConfig
Source§fn clone(&self) -> SyncConfig
fn clone(&self) -> SyncConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SyncConfig
impl RefUnwindSafe for SyncConfig
impl Send for SyncConfig
impl Sync for SyncConfig
impl Unpin for SyncConfig
impl UnwindSafe for SyncConfig
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