pub struct ApiSource {
pub title: String,
pub slug: String,
pub url: String,
}Expand description
A single Scalar API reference source entry.
Each temporal version boundary gets its own source so Scalar renders a version switcher in the UI.
Fields§
§title: String§slug: String§url: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for ApiSource
impl RefUnwindSafe for ApiSource
impl Send for ApiSource
impl Sync for ApiSource
impl Unpin for ApiSource
impl UnsafeUnpin for ApiSource
impl UnwindSafe for ApiSource
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