#[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 for GetDocumentationPartOutput
impl PartialEq 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.impl StructuralPartialEq for GetDocumentationPartOutput
Auto Trait Implementations§
impl Freeze for GetDocumentationPartOutput
impl RefUnwindSafe for GetDocumentationPartOutput
impl Send for GetDocumentationPartOutput
impl Sync for GetDocumentationPartOutput
impl Unpin for GetDocumentationPartOutput
impl UnwindSafe for GetDocumentationPartOutput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more