Struct speakeasy_rust_sdk::Config
source · pub struct Config {
pub api_key: String,
pub api_id: String,
pub version_id: String,
}
Expand description
Configuration struct for configuring the global speakeasy SDK instance
Fields§
§api_key: String
Retrieve from Speakeasy API dashboard.
api_id: String
Name that you’d like to associate captured requests with.
This name will show up in the Speakeasy dashboard. e.g. “PetStore” might be a good ApiID for a Pet Store’s API. No spaces allowed.
version_id: String
Version that you would like to associate captured requests with.
The combination of ApiID (name) and VersionID will uniquely identify your requests in the Speakeasy Dashboard. e.g. “v1.0.0”. You can have multiple versions for the same ApiID (if running multiple versions of your API)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request