pub struct ApiSpec {
pub name: String,
pub description: String,
pub spec_url: String,
pub base_url: String,
pub auth_env: Option<String>,
}Expand description
A known API spec source.
Fields§
§name: StringShort name: “github”, “stripe”
description: StringHuman description
spec_url: StringURL to download the OpenAPI JSON spec
base_url: StringDefault base URL for API calls
auth_env: Option<String>Auth env var hint (e.g. “GITHUB_TOKEN”)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiSpec
impl RefUnwindSafe for ApiSpec
impl Send for ApiSpec
impl Sync for ApiSpec
impl Unpin for ApiSpec
impl UnsafeUnpin for ApiSpec
impl UnwindSafe for ApiSpec
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