pub struct ConnectionOptions {
pub user_agent: Option<String>,
pub expected_server_version: u32,
pub error_on_unsupported_version: bool,
}
Expand description
Options, that change the behaviour of the communication with the server
Fields§
§user_agent: Option<String>
A custom useragent to use, when sending requests to the server
expected_server_version: u32
The server version, that this API was last tested on
error_on_unsupported_version: bool
If this is true, any request to the server will error, if the servers
version is greater, than expected_server_version
. This can be useful,
if you want to make sure you never get surprised by unexpected changes
on the server
Trait Implementations§
Source§impl Clone for ConnectionOptions
impl Clone for ConnectionOptions
Source§fn clone(&self) -> ConnectionOptions
fn clone(&self) -> ConnectionOptions
Returns a copy 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 moreSource§impl Debug for ConnectionOptions
impl Debug for ConnectionOptions
Auto Trait Implementations§
impl Freeze for ConnectionOptions
impl RefUnwindSafe for ConnectionOptions
impl Send for ConnectionOptions
impl Sync for ConnectionOptions
impl Unpin for ConnectionOptions
impl UnwindSafe for ConnectionOptions
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