pub struct Server {
pub timeout_seconds: Option<f64>,
pub url: String,
pub secret: Option<String>,
pub headers: Option<Value>,
pub backoff_plan: Option<Box<BackoffPlan>>,
}Fields§
§timeout_seconds: Option<f64>This is the timeout in seconds for the request to your server. Defaults to 20 seconds. @default 20
url: StringAPI endpoint to send requests to.
secret: Option<String>This is the secret you can set that Vapi will send with every request to your server. Will be sent as a header called x-vapi-secret. Same precedence logic as server.
headers: Option<Value>These are the custom headers to include in the request sent to your server. Each key-value pair represents a header name and its value.
backoff_plan: Option<Box<BackoffPlan>>This is the backoff plan to use if the request fails.
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