#[non_exhaustive]pub struct DeployResponse {
pub publisher_model: String,
pub endpoint: String,
pub model: String,
/* private fields */
}Available on crate feature
model-garden-service only.Expand description
Response message for ModelGardenService.Deploy.
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.publisher_model: StringOutput only. The name of the PublisherModel resource.
Format:
publishers/{publisher}/models/{publisher_model}@{version_id}, or
publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001
endpoint: StringOutput only. The name of the Endpoint created.
Format: projects/{project}/locations/{location}/endpoints/{endpoint}
model: StringOutput only. The name of the Model created.
Format: projects/{project}/locations/{location}/models/{model}
Implementations§
Source§impl DeployResponse
impl DeployResponse
pub fn new() -> Self
Sourcepub fn set_publisher_model<T: Into<String>>(self, v: T) -> Self
pub fn set_publisher_model<T: Into<String>>(self, v: T) -> Self
Sets the value of publisher_model.
§Example
ⓘ
let x = DeployResponse::new().set_publisher_model("example");Sourcepub fn set_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_endpoint<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for DeployResponse
impl Clone for DeployResponse
Source§fn clone(&self) -> DeployResponse
fn clone(&self) -> DeployResponse
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 DeployResponse
impl Debug for DeployResponse
Source§impl Default for DeployResponse
impl Default for DeployResponse
Source§fn default() -> DeployResponse
fn default() -> DeployResponse
Returns the “default value” for a type. Read more
Source§impl Message for DeployResponse
impl Message for DeployResponse
Source§impl PartialEq for DeployResponse
impl PartialEq for DeployResponse
impl StructuralPartialEq for DeployResponse
Auto Trait Implementations§
impl Freeze for DeployResponse
impl RefUnwindSafe for DeployResponse
impl Send for DeployResponse
impl Sync for DeployResponse
impl Unpin for DeployResponse
impl UnwindSafe for DeployResponse
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