#[non_exhaustive]pub struct ExecuteOntapPatchRequest {
pub body: Option<Struct>,
pub ontap_path: String,
/* private fields */
}Expand description
Request message for ExecuteOntapPatch API.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.body: Option<Struct>Required. The raw JSON body of the request.
The body should be in the format of the ONTAP resource.
For example:
{
"body": {
"field1": "value1",
"field2": "value2",
}
}ontap_path: StringRequired. The resource path of the ONTAP resource.
Format:
projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}.
For example:
projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes.
Implementations§
Source§impl ExecuteOntapPatchRequest
impl ExecuteOntapPatchRequest
Sourcepub fn set_or_clear_body<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_body<T>(self, v: Option<T>) -> Self
Sourcepub fn set_ontap_path<T: Into<String>>(self, v: T) -> Self
pub fn set_ontap_path<T: Into<String>>(self, v: T) -> Self
Sets the value of ontap_path.
§Example
ⓘ
let x = ExecuteOntapPatchRequest::new().set_ontap_path("example");Trait Implementations§
Source§impl Clone for ExecuteOntapPatchRequest
impl Clone for ExecuteOntapPatchRequest
Source§fn clone(&self) -> ExecuteOntapPatchRequest
fn clone(&self) -> ExecuteOntapPatchRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecuteOntapPatchRequest
impl Debug for ExecuteOntapPatchRequest
Source§impl Default for ExecuteOntapPatchRequest
impl Default for ExecuteOntapPatchRequest
Source§fn default() -> ExecuteOntapPatchRequest
fn default() -> ExecuteOntapPatchRequest
Returns the “default value” for a type. Read more
Source§impl Message for ExecuteOntapPatchRequest
impl Message for ExecuteOntapPatchRequest
Source§impl PartialEq for ExecuteOntapPatchRequest
impl PartialEq for ExecuteOntapPatchRequest
impl StructuralPartialEq for ExecuteOntapPatchRequest
Auto Trait Implementations§
impl Freeze for ExecuteOntapPatchRequest
impl RefUnwindSafe for ExecuteOntapPatchRequest
impl Send for ExecuteOntapPatchRequest
impl Sync for ExecuteOntapPatchRequest
impl Unpin for ExecuteOntapPatchRequest
impl UnsafeUnpin for ExecuteOntapPatchRequest
impl UnwindSafe for ExecuteOntapPatchRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request