#[non_exhaustive]pub enum DestinationModel {
ModelId(String),
ParentModel(String),
}Available on crate feature
model-service only.Expand description
If both fields are unset, a new Model will be created with a generated ID.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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}
Trait Implementations§
Source§impl Clone for DestinationModel
impl Clone for DestinationModel
Source§fn clone(&self) -> DestinationModel
fn clone(&self) -> DestinationModel
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 DestinationModel
impl Debug for DestinationModel
Source§impl PartialEq for DestinationModel
impl PartialEq for DestinationModel
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