pub struct HirSpec {
pub operations: Vec<Operation>,
pub schemas: BTreeMap<String, Record>,
pub servers: BTreeMap<String, String>,
pub security: Vec<AuthStrategy>,
pub api_docs_url: Option<String>,
}
Fields§
§operations: Vec<Operation>
§schemas: BTreeMap<String, Record>
§servers: BTreeMap<String, String>
§security: Vec<AuthStrategy>
§api_docs_url: Option<String>
Implementations§
Source§impl HirSpec
impl HirSpec
pub fn get_record(&self, name: &str) -> Result<&Record>
pub fn get_operation(&self, name: &str) -> Result<&Operation>
pub fn server_strategy(&self) -> ServerStrategy
pub fn multiple_security(&self) -> bool
pub fn env_vars(&self, service_name: &str) -> Vec<String>
pub fn has_security(&self) -> bool
pub fn has_basic_auth(&self) -> bool
pub fn oauth2_auth(&self) -> Option<&Oauth2Auth>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HirSpec
impl RefUnwindSafe for HirSpec
impl Send for HirSpec
impl Sync for HirSpec
impl Unpin for HirSpec
impl UnwindSafe for HirSpec
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