mirror of https://github.com/chipsenkbeil/distant
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
502 B
Rust
22 lines
502 B
Rust
use distant_core::net::common::Map;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
|
|
pub struct ClientConnectConfig {
|
|
pub options: Map,
|
|
}
|
|
|
|
impl From<Map> for ClientConnectConfig {
|
|
fn from(map: Map) -> Self {
|
|
Self { options: map }
|
|
}
|
|
}
|
|
|
|
impl From<ClientConnectConfig> for Map {
|
|
fn from(config: ClientConnectConfig) -> Self {
|
|
let mut this = Self::new();
|
|
this.extend(config.options);
|
|
this
|
|
}
|
|
}
|