#[non_exhaustive]pub struct ExportModelRequest {
pub name: String,
pub output_config: Option<OutputConfig>,
/* private fields */
}Expand description
Request message for ModelService.ExportModel.
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.name: StringRequired. The resource name of the Model to export. The resource name may contain version id or version alias to specify the version, if no version is specified, the default version will be exported.
output_config: Option<OutputConfig>Required. The desired output location and configuration.
Implementations§
Source§impl ExportModelRequest
impl ExportModelRequest
pub fn new() -> Self
Sourcepub fn set_output_config<T: Into<Option<OutputConfig>>>(self, v: T) -> Self
pub fn set_output_config<T: Into<Option<OutputConfig>>>(self, v: T) -> Self
Sets the value of output_config.
Trait Implementations§
Source§impl Clone for ExportModelRequest
impl Clone for ExportModelRequest
Source§fn clone(&self) -> ExportModelRequest
fn clone(&self) -> ExportModelRequest
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 ExportModelRequest
impl Debug for ExportModelRequest
Source§impl Default for ExportModelRequest
impl Default for ExportModelRequest
Source§fn default() -> ExportModelRequest
fn default() -> ExportModelRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExportModelRequestwhere
ExportModelRequest: Default,
impl<'de> Deserialize<'de> for ExportModelRequestwhere
ExportModelRequest: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for ExportModelRequest
impl Message for ExportModelRequest
Source§impl PartialEq for ExportModelRequest
impl PartialEq for ExportModelRequest
Source§impl Serialize for ExportModelRequest
impl Serialize for ExportModelRequest
impl StructuralPartialEq for ExportModelRequest
Auto Trait Implementations§
impl Freeze for ExportModelRequest
impl RefUnwindSafe for ExportModelRequest
impl Send for ExportModelRequest
impl Sync for ExportModelRequest
impl Unpin for ExportModelRequest
impl UnwindSafe for ExportModelRequest
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