#[non_exhaustive]pub struct SqlInstancesPerformDiskShrinkRequest {
pub instance: String,
pub project: String,
pub body: Option<PerformDiskShrinkContext>,
pub location: String,
/* private fields */
}Expand description
Instance perform disk shrink request.
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.instance: StringCloud SQL instance ID. This does not include the project ID.
project: StringProject ID of the project that contains the instance.
body: Option<PerformDiskShrinkContext>Perform disk shrink context.
location: StringOptional. Region of the Cloud SQL instance.
Implementations§
Source§impl SqlInstancesPerformDiskShrinkRequest
impl SqlInstancesPerformDiskShrinkRequest
Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<PerformDiskShrinkContext>,
pub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<PerformDiskShrinkContext>,
Sourcepub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<PerformDiskShrinkContext>,
pub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<PerformDiskShrinkContext>,
Sets or clears the value of body.
§Example
ⓘ
use google_cloud_sql_v1::model::PerformDiskShrinkContext;
let x = SqlInstancesPerformDiskShrinkRequest::new().set_or_clear_body(Some(PerformDiskShrinkContext::default()/* use setters */));
let x = SqlInstancesPerformDiskShrinkRequest::new().set_or_clear_body(None::<PerformDiskShrinkContext>);Trait Implementations§
impl StructuralPartialEq for SqlInstancesPerformDiskShrinkRequest
Auto Trait Implementations§
impl Freeze for SqlInstancesPerformDiskShrinkRequest
impl RefUnwindSafe for SqlInstancesPerformDiskShrinkRequest
impl Send for SqlInstancesPerformDiskShrinkRequest
impl Sync for SqlInstancesPerformDiskShrinkRequest
impl Unpin for SqlInstancesPerformDiskShrinkRequest
impl UnsafeUnpin for SqlInstancesPerformDiskShrinkRequest
impl UnwindSafe for SqlInstancesPerformDiskShrinkRequest
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