pub struct SpecMetadata {
pub title: String,
pub server_url: Option<String>,
}Expand description
Metadata extracted from an OpenAPI spec’s info and servers sections.
Fields§
§title: StringThe API title from info.title, or “API” if missing.
server_url: Option<String>The first server URL from servers[0].url, if present.
Auto Trait Implementations§
impl Freeze for SpecMetadata
impl RefUnwindSafe for SpecMetadata
impl Send for SpecMetadata
impl Sync for SpecMetadata
impl Unpin for SpecMetadata
impl UnsafeUnpin for SpecMetadata
impl UnwindSafe for SpecMetadata
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