pub struct HttpDocumentMetadata {
pub package: Option<String>,
pub version: Option<String>,
pub servers: Vec<HttpDocumentServer>,
pub version_parameter: Option<VersionParameter>,
pub version_values: BTreeMap<String, String>,
pub exceptions: Vec<HttpException>,
pub http_unions: Vec<HttpUnion>,
}Fields§
§package: Option<String>§version: Option<String>§servers: Vec<HttpDocumentServer>§version_parameter: Option<VersionParameter>API version parameter declaration. Typed stage metadata, not a pragma.
version_values: BTreeMap<String, String>Version module ident to wire value, so merged-layout output can resolve the version of its enclosing module.
exceptions: Vec<HttpException>Document-level exception declarations projected for HTTP use.
http_unions: Vec<HttpUnion>Document-level @http unions: content-negotiated representations.
Implementations§
Source§impl HttpDocumentMetadata
impl HttpDocumentMetadata
Sourcepub fn api_version(&self, module_path: &[String]) -> Option<&str>
pub fn api_version(&self, module_path: &[String]) -> Option<&str>
Finds the version of an interface, including nested business modules.
Trait Implementations§
Source§impl Clone for HttpDocumentMetadata
impl Clone for HttpDocumentMetadata
Source§impl Debug for HttpDocumentMetadata
impl Debug for HttpDocumentMetadata
Source§impl Default for HttpDocumentMetadata
impl Default for HttpDocumentMetadata
Source§impl<'de> Deserialize<'de> for HttpDocumentMetadata
impl<'de> Deserialize<'de> for HttpDocumentMetadata
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 HttpDocumentMetadata
impl RefUnwindSafe for HttpDocumentMetadata
impl Send for HttpDocumentMetadata
impl Sync for HttpDocumentMetadata
impl Unpin for HttpDocumentMetadata
impl UnsafeUnpin for HttpDocumentMetadata
impl UnwindSafe for HttpDocumentMetadata
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