#[non_exhaustive]pub struct CreateEngineRequest {
pub parent: String,
pub engine: Option<Engine>,
pub engine_id: String,
/* private fields */
}Available on crate feature
engine-service only.Expand description
Request for EngineService.CreateEngine method.
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.parent: StringRequired. The parent resource name, such as
projects/{project}/locations/{location}/collections/{collection}.
engine: Option<Engine>Required. The Engine to create.
engine_id: StringRequired. The ID to use for the Engine, which will become the final component of the Engine’s resource name.
This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.
Implementations§
Source§impl CreateEngineRequest
impl CreateEngineRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_engine<T>(self, v: T) -> Self
pub fn set_engine<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_engine<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_engine<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateEngineRequest
impl Clone for CreateEngineRequest
Source§fn clone(&self) -> CreateEngineRequest
fn clone(&self) -> CreateEngineRequest
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 CreateEngineRequest
impl Debug for CreateEngineRequest
Source§impl Default for CreateEngineRequest
impl Default for CreateEngineRequest
Source§fn default() -> CreateEngineRequest
fn default() -> CreateEngineRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateEngineRequest
impl Message for CreateEngineRequest
Source§impl PartialEq for CreateEngineRequest
impl PartialEq for CreateEngineRequest
impl StructuralPartialEq for CreateEngineRequest
Auto Trait Implementations§
impl Freeze for CreateEngineRequest
impl RefUnwindSafe for CreateEngineRequest
impl Send for CreateEngineRequest
impl Sync for CreateEngineRequest
impl Unpin for CreateEngineRequest
impl UnwindSafe for CreateEngineRequest
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