pub struct ConnectRequest {
pub key: Option<KeyConfig>,
pub spawn_config: Option<SpawnConfig>,
pub user: Option<String>,
pub auth: Map<String, Value>,
}
Fields§
§key: Option<KeyConfig>
Configuration for the key to use.
spawn_config: Option<SpawnConfig>
Config to use if we need to create a new backend to connect to.
user: Option<String>
Username or other identifier to associate with the generated connection URL. Passed to the backend through the X-Plane-User header.
auth: Map<String, Value>
Arbitrary JSON object to pass along with each request to the backend. Passed to the backend through the X-Plane-Auth header.
Trait Implementations§
Source§impl Clone for ConnectRequest
impl Clone for ConnectRequest
Source§fn clone(&self) -> ConnectRequest
fn clone(&self) -> ConnectRequest
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 moreSource§impl Debug for ConnectRequest
impl Debug for ConnectRequest
Source§impl Default for ConnectRequest
impl Default for ConnectRequest
Source§fn default() -> ConnectRequest
fn default() -> ConnectRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConnectRequest
impl<'de> Deserialize<'de> for ConnectRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConnectRequest
impl RefUnwindSafe for ConnectRequest
impl Send for ConnectRequest
impl Sync for ConnectRequest
impl Unpin for ConnectRequest
impl UnwindSafe for ConnectRequest
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