Struct aws_sdk_apigateway::operation::create_documentation_part::CreateDocumentationPartOutput
source · #[non_exhaustive]pub struct CreateDocumentationPartOutput {
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 CreateDocumentationPartOutput
impl CreateDocumentationPartOutput
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 CreateDocumentationPartOutput
impl CreateDocumentationPartOutput
sourcepub fn builder() -> CreateDocumentationPartOutputBuilder
pub fn builder() -> CreateDocumentationPartOutputBuilder
Creates a new builder-style object to manufacture CreateDocumentationPartOutput
.
Trait Implementations§
source§impl Clone for CreateDocumentationPartOutput
impl Clone for CreateDocumentationPartOutput
source§fn clone(&self) -> CreateDocumentationPartOutput
fn clone(&self) -> CreateDocumentationPartOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<CreateDocumentationPartOutput> for CreateDocumentationPartOutput
impl PartialEq<CreateDocumentationPartOutput> for CreateDocumentationPartOutput
source§fn eq(&self, other: &CreateDocumentationPartOutput) -> bool
fn eq(&self, other: &CreateDocumentationPartOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for CreateDocumentationPartOutput
impl RequestId for CreateDocumentationPartOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.