pub struct SyncConfigJson {
pub bot_id: String,
pub upstream_url: String,
pub sync_interval_ms: u64,
pub timeout_secs: u64,
pub sync_secret: Option<String>,
pub enabled: bool,
}Expand description
Trade syncer configuration for upstream API PnL tracking
Fields§
§bot_id: StringBot ID for upstream API (required if enabled)
upstream_url: StringUpstream API base URL (e.g., <https://api.example.com/bot-api>)
sync_interval_ms: u64Sync interval in milliseconds (default: 10000)
timeout_secs: u64HTTP timeout in seconds (default: 10)
sync_secret: Option<String>Optional shared secret sent as x-bot-sync-secret.
enabled: boolEnable syncing (default: true if sync section is present)
Trait Implementations§
Source§impl Clone for SyncConfigJson
impl Clone for SyncConfigJson
Source§fn clone(&self) -> SyncConfigJson
fn clone(&self) -> SyncConfigJson
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SyncConfigJson
impl Debug for SyncConfigJson
Source§impl<'de> Deserialize<'de> for SyncConfigJson
impl<'de> Deserialize<'de> for SyncConfigJson
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SyncConfigJson, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SyncConfigJson, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for SyncConfigJson
impl JsonSchema for SyncConfigJson
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for SyncConfigJson
impl Serialize for SyncConfigJson
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SyncConfigJson
impl RefUnwindSafe for SyncConfigJson
impl Send for SyncConfigJson
impl Sync for SyncConfigJson
impl Unpin for SyncConfigJson
impl UnsafeUnpin for SyncConfigJson
impl UnwindSafe for SyncConfigJson
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