pub enum DestinationModel {
ModelId(String),
ParentModel(String),
}
Expand description
If both fields are unset, a new Model will be created with a generated ID.
Variants§
ModelId(String)
Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name.
This value may be up to 63 characters, and valid characters are
\[a-z0-9_-\]
. The first character cannot be a number or hyphen.
ParentModel(String)
Optional. Specify this field to copy source_model into this existing
Model as a new version. Format:
projects/{project}/locations/{location}/models/{model}
Implementations§
source§impl DestinationModel
impl DestinationModel
sourcepub fn merge(
field: &mut Option<DestinationModel>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<DestinationModel>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for DestinationModel
impl Clone for DestinationModel
source§fn clone(&self) -> DestinationModel
fn clone(&self) -> DestinationModel
Returns a copy 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 DestinationModel
impl Debug for DestinationModel
source§impl PartialEq for DestinationModel
impl PartialEq for DestinationModel
source§fn eq(&self, other: &DestinationModel) -> bool
fn eq(&self, other: &DestinationModel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DestinationModel
Auto Trait Implementations§
impl Freeze for DestinationModel
impl RefUnwindSafe for DestinationModel
impl Send for DestinationModel
impl Sync for DestinationModel
impl Unpin for DestinationModel
impl UnwindSafe for DestinationModel
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request