pub struct ClientBuilder { /* private fields */ }Expand description
Validated client configuration.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn max_response_bytes(self, value: usize) -> Self
pub fn max_response_bytes(self, value: usize) -> Self
Set the maximum non-stream response body size in bytes.
Sourcepub fn exit_reserve(self, requests: u32) -> Self
pub fn exit_reserve(self, requests: u32) -> Self
Reserve requests in the shared local 100-request, one-second window for exits.
The default is zero. Only cancel_order, close_trade, and close_position
can use the reserve. All requests still count toward the same aggregate limit
and provider cooldown. The value must be less than 100; build validates it.
Sourcepub fn datetime_format(self, value: AcceptDatetimeFormat) -> Self
pub fn datetime_format(self, value: AcceptDatetimeFormat) -> Self
Select the documented OANDA timestamp wire format for responses.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin for ClientBuilder
impl UnwindSafe for ClientBuilder
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