pub struct Source {
pub url: String,
pub agent: Option<AgentOptions>,
}Expand description
A single OpenAPI document source.
Used in the sources array for multi-document configuration.
Each source can have its own AgentOptions (e.g. API key).
Fields§
§url: StringURL to the OpenAPI document.
agent: Option<AgentOptions>Optional Agent Scalar options for this document.
Implementations§
Source§impl Source
impl Source
Sourcepub fn with_agent(self, agent: AgentOptions) -> Self
pub fn with_agent(self, agent: AgentOptions) -> Self
Set Agent Scalar options for this source.
Trait Implementations§
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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