pub struct SdkFullConfig {
pub api_key: Option<String>,
pub http: Option<HttpConfig>,
pub admin: Option<AdminConfig>,
pub streams: Option<StreamsConfig>,
pub webhooks: Option<WebhooksConfig>,
pub kvstore: Option<KvStoreConfig>,
pub sql: Option<SqlConfig>,
pub rpc: Option<RpcConfig>,
}Fields§
§api_key: Option<String>Account API key. Optional so a keyless SDK can be built for the
crypto-micropayment lane (rpc.call with RpcConfig.payment). When
absent, no x-api-key header is installed: the payment lane works, while
the keyed surfaces (admin/streams/webhooks/kvstore/sql and tooling-JWT
rpc.call) send un-authenticated requests and the gateway rejects them
(surfacing as an ApiError, typically 401). from_env still requires
the key (validated in from_config) — only programmatic construction
may omit it.
http: Option<HttpConfig>§admin: Option<AdminConfig>§streams: Option<StreamsConfig>§webhooks: Option<WebhooksConfig>§kvstore: Option<KvStoreConfig>§sql: Option<SqlConfig>§rpc: Option<RpcConfig>Implementations§
Source§impl SdkFullConfig
impl SdkFullConfig
pub fn from_api_key(api_key: String) -> Self
Sourcepub fn keyless() -> Self
pub fn keyless() -> Self
Build a keyless config for the crypto-micropayment lane. No API key is
installed; the payment-lane rpc.call works, while every keyed surface
sends un-authenticated requests that the gateway rejects (ApiError).
pub fn from_env() -> Result<Self, SdkError>
Trait Implementations§
Source§impl Clone for SdkFullConfig
impl Clone for SdkFullConfig
Source§fn clone(&self) -> SdkFullConfig
fn clone(&self) -> SdkFullConfig
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 SdkFullConfig
impl Debug for SdkFullConfig
Source§impl<'de> Deserialize<'de> for SdkFullConfig
impl<'de> Deserialize<'de> for SdkFullConfig
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 SdkFullConfig
impl RefUnwindSafe for SdkFullConfig
impl Send for SdkFullConfig
impl Sync for SdkFullConfig
impl Unpin for SdkFullConfig
impl UnsafeUnpin for SdkFullConfig
impl UnwindSafe for SdkFullConfig
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