pub struct SomaConfig {
pub api_url: String,
pub api_key: String,
pub runtime_mode: RuntimeMode,
}Expand description
Config for the Soma runtime or deployed platform API.
For application/platform servers, the local CLI + stdio MCP adapter uses
api_url as the deployed soma serve API base URL. For upstream-client
servers, replace this with config for the actual upstream service.
Fields§
§api_url: StringBase URL of the deployed platform API or upstream service (SOMA_API_URL).
Example: https://example.example.com/
api_key: StringAPI key or bearer token (SOMA_API_KEY).
runtime_mode: RuntimeModeRuntime adapter mode (SOMA_RUNTIME_MODE).
Implementations§
Source§impl SomaConfig
impl SomaConfig
pub fn effective_runtime_mode(&self) -> EffectiveRuntimeMode
pub fn is_remote_adapter(&self) -> bool
Trait Implementations§
Source§impl Clone for SomaConfig
impl Clone for SomaConfig
Source§fn clone(&self) -> SomaConfig
fn clone(&self) -> SomaConfig
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 SomaConfig
impl Debug for SomaConfig
Source§impl Default for SomaConfig
impl Default for SomaConfig
Source§fn default() -> SomaConfig
fn default() -> SomaConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SomaConfigwhere
SomaConfig: Default,
impl<'de> Deserialize<'de> for SomaConfigwhere
SomaConfig: Default,
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 SomaConfig
impl RefUnwindSafe for SomaConfig
impl Send for SomaConfig
impl Sync for SomaConfig
impl Unpin for SomaConfig
impl UnsafeUnpin for SomaConfig
impl UnwindSafe for SomaConfig
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