pub struct Server {
pub timeout_seconds: Option<f64>,
pub url: Option<String>,
pub headers: Option<Value>,
pub backoff_plan: Option<BackoffPlan>,
}
Fields§
§timeout_seconds: Option<f64>
This is the timeout in seconds for the request. Defaults to 20 seconds. @default 20
url: Option<String>
This is where the request will be sent.
headers: Option<Value>
These are the headers to include in the request. Each key-value pair represents a header name and its value.
backoff_plan: Option<BackoffPlan>
This is the backoff plan if the request fails. Defaults to undefined (the request will not be retried). @default undefined (the request will not be retried)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Server
impl<'de> Deserialize<'de> for Server
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
impl StructuralPartialEq for Server
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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