#[non_exhaustive]pub struct GetDocumentationPartOutput {
pub id: Option<String>,
pub location: Option<DocumentationPartLocation>,
pub properties: Option<String>,
/* private fields */
}
Expand description
A documentation part for a targeted API entity.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: Option<String>
The DocumentationPart identifier, generated by API Gateway when the DocumentationPart
is created.
location: Option<DocumentationPartLocation>
The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.
properties: Option<String>
A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }"
. Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation
.
Implementations§
source§impl GetDocumentationPartOutput
impl GetDocumentationPartOutput
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
The DocumentationPart identifier, generated by API Gateway when the DocumentationPart
is created.
sourcepub fn location(&self) -> Option<&DocumentationPartLocation>
pub fn location(&self) -> Option<&DocumentationPartLocation>
The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.
sourcepub fn properties(&self) -> Option<&str>
pub fn properties(&self) -> Option<&str>
A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }"
. Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation
.
source§impl GetDocumentationPartOutput
impl GetDocumentationPartOutput
sourcepub fn builder() -> GetDocumentationPartOutputBuilder
pub fn builder() -> GetDocumentationPartOutputBuilder
Creates a new builder-style object to manufacture GetDocumentationPartOutput
.
Trait Implementations§
source§impl Clone for GetDocumentationPartOutput
impl Clone for GetDocumentationPartOutput
source§fn clone(&self) -> GetDocumentationPartOutput
fn clone(&self) -> GetDocumentationPartOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetDocumentationPartOutput
impl Debug for GetDocumentationPartOutput
source§impl PartialEq<GetDocumentationPartOutput> for GetDocumentationPartOutput
impl PartialEq<GetDocumentationPartOutput> for GetDocumentationPartOutput
source§fn eq(&self, other: &GetDocumentationPartOutput) -> bool
fn eq(&self, other: &GetDocumentationPartOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetDocumentationPartOutput
impl RequestId for GetDocumentationPartOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.