#[non_exhaustive]pub struct SqlDatabasesInsertRequest {
pub instance: String,
pub project: String,
pub body: Option<Database>,
pub location: String,
/* private fields */
}Expand description
Database insert 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: StringDatabase instance ID. This does not include the project ID.
project: StringProject ID of the project that contains the instance.
body: Option<Database>§location: StringOptional. Region of the Cloud SQL instance.
Implementations§
Source§impl SqlDatabasesInsertRequest
impl SqlDatabasesInsertRequest
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_or_clear_body<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_body<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for SqlDatabasesInsertRequest
impl Clone for SqlDatabasesInsertRequest
Source§impl Debug for SqlDatabasesInsertRequest
impl Debug for SqlDatabasesInsertRequest
Source§impl Default for SqlDatabasesInsertRequest
impl Default for SqlDatabasesInsertRequest
Source§impl Message for SqlDatabasesInsertRequest
impl Message for SqlDatabasesInsertRequest
impl StructuralPartialEq for SqlDatabasesInsertRequest
Auto Trait Implementations§
impl Freeze for SqlDatabasesInsertRequest
impl RefUnwindSafe for SqlDatabasesInsertRequest
impl Send for SqlDatabasesInsertRequest
impl Sync for SqlDatabasesInsertRequest
impl Unpin for SqlDatabasesInsertRequest
impl UnsafeUnpin for SqlDatabasesInsertRequest
impl UnwindSafe for SqlDatabasesInsertRequest
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