pub struct ApiSpec {
pub name: String,
pub display_name: String,
pub version: String,
pub description: Option<String>,
pub kind: ApiKind,
pub base_url: Option<String>,
pub types: Vec<TypeDef>,
pub operations: Vec<Operation>,
pub raw_spec: Option<String>,
}Expand description
The full description of an API.
Fields§
§name: StringCrate name (snake_case) for the generated output.
display_name: StringHuman-readable display name.
version: StringSemantic version.
description: Option<String>Optional crate-level description.
kind: ApiKindSource API kind.
base_url: Option<String>Default base URL, if known.
types: Vec<TypeDef>User-defined types (structs, enums, aliases).
operations: Vec<Operation>Callable operations.
raw_spec: Option<String>The raw spec contents (useful for build.rs or schema files).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiSpec
impl<'de> Deserialize<'de> for ApiSpec
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 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