pub struct RemoteSource {
pub username: Option<String>,
pub password: Option<String>,
pub host: String,
pub socket_timeout: Option<String>,
pub connect_timeout: Option<String>,
pub headers: Option<Value>,
}Fields§
§username: Option<String>§password: Option<String>§host: String§socket_timeout: Option<String>A duration. Units can be nanos, micros, ms (milliseconds), s (seconds), m (minutes), h (hours) and
d (days). Also accepts “0” without a unit and “-1” to indicate an unspecified value.
connect_timeout: Option<String>A duration. Units can be nanos, micros, ms (milliseconds), s (seconds), m (minutes), h (hours) and
d (days). Also accepts “0” without a unit and “-1” to indicate an unspecified value.
headers: Option<Value>An object containing the headers of the request.
Implementations§
Source§impl RemoteSource
impl RemoteSource
pub fn new(host: String) -> RemoteSource
Trait Implementations§
Source§impl Clone for RemoteSource
impl Clone for RemoteSource
Source§fn clone(&self) -> RemoteSource
fn clone(&self) -> RemoteSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RemoteSource
impl Debug for RemoteSource
Source§impl Default for RemoteSource
impl Default for RemoteSource
Source§fn default() -> RemoteSource
fn default() -> RemoteSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RemoteSource
impl<'de> Deserialize<'de> for RemoteSource
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
Source§impl PartialEq for RemoteSource
impl PartialEq for RemoteSource
Source§fn eq(&self, other: &RemoteSource) -> bool
fn eq(&self, other: &RemoteSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RemoteSource
impl Serialize for RemoteSource
impl StructuralPartialEq for RemoteSource
Auto Trait Implementations§
impl Freeze for RemoteSource
impl RefUnwindSafe for RemoteSource
impl Send for RemoteSource
impl Sync for RemoteSource
impl Unpin for RemoteSource
impl UnsafeUnpin for RemoteSource
impl UnwindSafe for RemoteSource
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