pub struct IntegrationConfig {
pub idx: u8,
pub name: String,
pub protocol: IntegrationProtocol,
pub endpoint: String,
pub send: Kind,
pub recv: Kind,
pub secrets: Option<Vec<String>>,
pub timeout: Option<u16>,
}Expand description
The mechanism for reverse proxying and calling out to external APIs.
Fields§
§idx: u8Unique index for integration
name: StringName of the integration.
protocol: IntegrationProtocolProtocol used for communicating with the external service.
endpoint: StringEndpoint that the external service lives at.
send: KindDefinition for the parameters of the receiving service.
(Automatically translated to the service’s protocol/encoding format).
recv: KindDefinition for the returned value of the external service.
(Automatically translated from the service’s protocol/encoding format).
secrets: Option<Vec<String>>Names of secrets to include
timeout: Option<u16>Max duration for the template.
Unit: seconds
Trait Implementations§
Source§impl Clone for IntegrationConfig
impl Clone for IntegrationConfig
Source§fn clone(&self) -> IntegrationConfig
fn clone(&self) -> IntegrationConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 IntegrationConfig
impl Debug for IntegrationConfig
Source§impl<'de> Deserialize<'de> for IntegrationConfig
impl<'de> Deserialize<'de> for IntegrationConfig
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
Auto Trait Implementations§
impl Freeze for IntegrationConfig
impl RefUnwindSafe for IntegrationConfig
impl Send for IntegrationConfig
impl Sync for IntegrationConfig
impl Unpin for IntegrationConfig
impl UnwindSafe for IntegrationConfig
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