pub struct BackendConfig {
pub protocol: BackendProtocol,
pub inbound_url: Option<String>,
pub base_url: Option<String>,
pub token: String,
pub poll_interval_ms: Option<u64>,
pub adapter_dir: Option<String>,
pub port: Option<u16>,
pub active: bool,
pub config: Option<Value>,
}Expand description
Backend configuration
Fields§
§protocol: BackendProtocol§inbound_url: Option<String>Inbound URL for Pipelit (POST destination)
base_url: Option<String>Base URL for OpenCode
token: StringAuth token for the backend
poll_interval_ms: Option<u64>Poll interval for OpenCode (milliseconds)
adapter_dir: Option<String>Directory containing the external backend adapter (for External protocol)
port: Option<u16>Port for pre-spawned external backend adapter
active: boolWhether this backend is active (auto-spawned at startup for External protocol)
config: Option<Value>Opaque config blob passed as BACKEND_CONFIG env var to external subprocess
Trait Implementations§
Source§impl Clone for BackendConfig
impl Clone for BackendConfig
Source§fn clone(&self) -> BackendConfig
fn clone(&self) -> BackendConfig
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 BackendConfig
impl Debug for BackendConfig
Source§impl<'de> Deserialize<'de> for BackendConfig
impl<'de> Deserialize<'de> for BackendConfig
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 BackendConfig
impl PartialEq for BackendConfig
Source§impl Serialize for BackendConfig
impl Serialize for BackendConfig
impl StructuralPartialEq for BackendConfig
Auto Trait Implementations§
impl Freeze for BackendConfig
impl RefUnwindSafe for BackendConfig
impl Send for BackendConfig
impl Sync for BackendConfig
impl Unpin for BackendConfig
impl UnsafeUnpin for BackendConfig
impl UnwindSafe for BackendConfig
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