pub struct RequestConfig {
pub host: String,
pub port: String,
pub vehicle_name: String,
pub vehicle_model: String,
pub timeout: Duration,
pub debugging: bool,
}Expand description
Configuration for API requests.
Fields§
§host: StringHost address of the telemetry server (default: “127.0.0.1”).
port: StringPort of the telemetry server (default: “37337”).
vehicle_name: StringName of the vehicle to query (default: “Current”).
vehicle_model: StringModel of the vehicle to query (default: “Current”).
timeout: DurationRequest timeout (default: 300ms).
debugging: boolEnable debug logging of URLs and data.
Implementations§
Source§impl RequestConfig
impl RequestConfig
Sourcepub fn vehicle_name(self, vehicle_name: String) -> Self
pub fn vehicle_name(self, vehicle_name: String) -> Self
Sets the vehicle name.
Sourcepub fn vehicle_model(self, vehicle_model: String) -> Self
pub fn vehicle_model(self, vehicle_model: String) -> Self
Sets the vehicle model.
Auto Trait Implementations§
impl Freeze for RequestConfig
impl RefUnwindSafe for RequestConfig
impl Send for RequestConfig
impl Sync for RequestConfig
impl Unpin for RequestConfig
impl UnsafeUnpin for RequestConfig
impl UnwindSafe for RequestConfig
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