#[non_exhaustive]pub struct CreateIndexRequest {
pub project_id: String,
pub index: Option<Index>,
/* private fields */
}Expand description
The request for google.datastore.admin.v1.DatastoreAdmin.CreateIndex.
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.project_id: StringProject ID against which to make the request.
index: Option<Index>The index to create. The name and state fields are output only and will be ignored. Single property indexes cannot be created or deleted.
Implementations§
Source§impl CreateIndexRequest
impl CreateIndexRequest
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Trait Implementations§
Source§impl Clone for CreateIndexRequest
impl Clone for CreateIndexRequest
Source§fn clone(&self) -> CreateIndexRequest
fn clone(&self) -> CreateIndexRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 CreateIndexRequest
impl Debug for CreateIndexRequest
Source§impl Default for CreateIndexRequest
impl Default for CreateIndexRequest
Source§fn default() -> CreateIndexRequest
fn default() -> CreateIndexRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateIndexRequest
impl Message for CreateIndexRequest
Source§impl PartialEq for CreateIndexRequest
impl PartialEq for CreateIndexRequest
impl StructuralPartialEq for CreateIndexRequest
Auto Trait Implementations§
impl Freeze for CreateIndexRequest
impl RefUnwindSafe for CreateIndexRequest
impl Send for CreateIndexRequest
impl Sync for CreateIndexRequest
impl Unpin for CreateIndexRequest
impl UnwindSafe for CreateIndexRequest
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