pub struct CopyModel(/* private fields */);model-service only.Expand description
The request builder for ModelService::copy_model calls.
§Example
use builder::model_service::CopyModel;
let builder = prepare_request_builder();
use google_cloud_aiplatform_v1::Poller;
let response = builder.poller().until_done().await?;
fn prepare_request_builder() -> CopyModel {
// ... details omitted ...
}Implementations§
Source§impl CopyModel
impl CopyModel
Sourcepub fn with_request<V: Into<CopyModelRequest>>(self, v: V) -> Self
pub fn with_request<V: Into<CopyModelRequest>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
Sourcepub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
pub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
Sourcepub async fn send(self) -> Result<Operation>
pub async fn send(self) -> Result<Operation>
Sends the request.
§Long running operations
This starts, but does not poll, a longrunning operation. More information on copy_model.
Sourcepub fn poller(
self,
) -> impl Poller<CopyModelResponse, CopyModelOperationMetadata>
pub fn poller( self, ) -> impl Poller<CopyModelResponse, CopyModelOperationMetadata>
Creates a Poller to work with copy_model.
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
This is a required field for requests.
Sourcepub fn set_source_model<T: Into<String>>(self, v: T) -> Self
pub fn set_source_model<T: Into<String>>(self, v: T) -> Self
Sets the value of source_model.
This is a required field for requests.
Sourcepub fn set_encryption_spec<T: Into<Option<EncryptionSpec>>>(self, v: T) -> Self
pub fn set_encryption_spec<T: Into<Option<EncryptionSpec>>>(self, v: T) -> Self
Sets the value of encryption_spec.
Sourcepub fn set_destination_model<T: Into<Option<DestinationModel>>>(
self,
v: T,
) -> Self
pub fn set_destination_model<T: Into<Option<DestinationModel>>>( self, v: T, ) -> Self
Sets the value of destination_model.
Note that all the setters affecting destination_model are
mutually exclusive.
Sourcepub fn set_model_id<T: Into<String>>(self, v: T) -> Self
pub fn set_model_id<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_model
to hold a ModelId.
Note that all the setters affecting destination_model are
mutually exclusive.
Sourcepub fn set_parent_model<T: Into<String>>(self, v: T) -> Self
pub fn set_parent_model<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_model
to hold a ParentModel.
Note that all the setters affecting destination_model are
mutually exclusive.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CopyModel
impl !RefUnwindSafe for CopyModel
impl Send for CopyModel
impl Sync for CopyModel
impl Unpin for CopyModel
impl !UnwindSafe for CopyModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
Source§fn with_idempotency(self, v: bool) -> T
fn with_idempotency(self, v: bool) -> T
v is true, treat the RPC underlying this method as idempotent.