#[non_exhaustive]pub struct CreateSpecialistPoolRequest {
pub parent: String,
pub specialist_pool: Option<SpecialistPool>,
/* private fields */
}Available on crate feature
specialist-pool-service only.Expand description
Request message for SpecialistPoolService.CreateSpecialistPool.
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 Project name for the new SpecialistPool.
The form is projects/{project}/locations/{location}.
specialist_pool: Option<SpecialistPool>Required. The SpecialistPool to create.
Implementations§
Source§impl CreateSpecialistPoolRequest
impl CreateSpecialistPoolRequest
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_specialist_pool<T>(self, v: T) -> Selfwhere
T: Into<SpecialistPool>,
pub fn set_specialist_pool<T>(self, v: T) -> Selfwhere
T: Into<SpecialistPool>,
Sets the value of specialist_pool.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::SpecialistPool;
let x = CreateSpecialistPoolRequest::new().set_specialist_pool(SpecialistPool::default()/* use setters */);Sourcepub fn set_or_clear_specialist_pool<T>(self, v: Option<T>) -> Selfwhere
T: Into<SpecialistPool>,
pub fn set_or_clear_specialist_pool<T>(self, v: Option<T>) -> Selfwhere
T: Into<SpecialistPool>,
Sets or clears the value of specialist_pool.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::SpecialistPool;
let x = CreateSpecialistPoolRequest::new().set_or_clear_specialist_pool(Some(SpecialistPool::default()/* use setters */));
let x = CreateSpecialistPoolRequest::new().set_or_clear_specialist_pool(None::<SpecialistPool>);Trait Implementations§
Source§impl Clone for CreateSpecialistPoolRequest
impl Clone for CreateSpecialistPoolRequest
Source§fn clone(&self) -> CreateSpecialistPoolRequest
fn clone(&self) -> CreateSpecialistPoolRequest
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 CreateSpecialistPoolRequest
impl Debug for CreateSpecialistPoolRequest
Source§impl Default for CreateSpecialistPoolRequest
impl Default for CreateSpecialistPoolRequest
Source§fn default() -> CreateSpecialistPoolRequest
fn default() -> CreateSpecialistPoolRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for CreateSpecialistPoolRequest
Auto Trait Implementations§
impl Freeze for CreateSpecialistPoolRequest
impl RefUnwindSafe for CreateSpecialistPoolRequest
impl Send for CreateSpecialistPoolRequest
impl Sync for CreateSpecialistPoolRequest
impl Unpin for CreateSpecialistPoolRequest
impl UnwindSafe for CreateSpecialistPoolRequest
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