pub struct ImportDocumentationPartsRequest {
pub body: Bytes,
pub fail_on_warnings: Option<bool>,
pub mode: Option<String>,
pub rest_api_id: String,
}
Expand description
Import documentation parts from an external (e.g., OpenAPI) definition file.
Fields
body: Bytes
[Required] Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.
fail_on_warnings: Option<bool>
A query parameter to specify whether to rollback the documentation importation (true
) or not (false
) when a warning is encountered. The default value is false
.
mode: Option<String>
A query parameter to indicate whether to overwrite (OVERWRITE
) any existing DocumentationParts definition or to merge (MERGE
) the new definition into the existing one. The default value is MERGE
.
rest_api_id: String
[Required] The string identifier of the associated RestApi.
Trait Implementations
sourceimpl Clone for ImportDocumentationPartsRequest
impl Clone for ImportDocumentationPartsRequest
sourcefn clone(&self) -> ImportDocumentationPartsRequest
fn clone(&self) -> ImportDocumentationPartsRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for ImportDocumentationPartsRequest
impl Default for ImportDocumentationPartsRequest
sourcefn default() -> ImportDocumentationPartsRequest
fn default() -> ImportDocumentationPartsRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ImportDocumentationPartsRequest> for ImportDocumentationPartsRequest
impl PartialEq<ImportDocumentationPartsRequest> for ImportDocumentationPartsRequest
sourcefn eq(&self, other: &ImportDocumentationPartsRequest) -> bool
fn eq(&self, other: &ImportDocumentationPartsRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ImportDocumentationPartsRequest) -> bool
fn ne(&self, other: &ImportDocumentationPartsRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for ImportDocumentationPartsRequest
Auto Trait Implementations
impl RefUnwindSafe for ImportDocumentationPartsRequest
impl Send for ImportDocumentationPartsRequest
impl Sync for ImportDocumentationPartsRequest
impl Unpin for ImportDocumentationPartsRequest
impl UnwindSafe for ImportDocumentationPartsRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more