use serde::{Serialize, Deserialize};
use serde_json::Value as JsonValue;
use std::borrow::Cow;
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct BindParams {
port: i64,
}
impl BindParams {
pub fn builder(port: i64) -> BindParamsBuilder {
BindParamsBuilder {
port: port,
}
}
pub fn port(&self) -> i64 { self.port }
}
pub struct BindParamsBuilder {
port: i64,
}
impl BindParamsBuilder {
pub fn build(self) -> BindParams {
BindParams {
port: self.port,
}
}
}
impl BindParams { pub const METHOD: &'static str = "Tethering.bind"; }
impl<'a> crate::CdpCommand<'a> for BindParams {
const METHOD: &'static str = "Tethering.bind";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct UnbindParams {
port: i64,
}
impl UnbindParams {
pub fn builder(port: i64) -> UnbindParamsBuilder {
UnbindParamsBuilder {
port: port,
}
}
pub fn port(&self) -> i64 { self.port }
}
pub struct UnbindParamsBuilder {
port: i64,
}
impl UnbindParamsBuilder {
pub fn build(self) -> UnbindParams {
UnbindParams {
port: self.port,
}
}
}
impl UnbindParams { pub const METHOD: &'static str = "Tethering.unbind"; }
impl<'a> crate::CdpCommand<'a> for UnbindParams {
const METHOD: &'static str = "Tethering.unbind";
type Response = crate::EmptyReturns;
}