#[non_exhaustive]pub struct DeployedModelRef {
pub endpoint: String,
pub deployed_model_id: String,
/* private fields */
}Expand description
Points to a DeployedModel.
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.endpoint: StringImmutable. A resource name of an Endpoint.
deployed_model_id: StringImmutable. An ID of a DeployedModel in the above Endpoint.
Implementations§
Source§impl DeployedModelRef
impl DeployedModelRef
pub fn new() -> Self
Sourcepub fn set_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of endpoint.
Sourcepub fn set_deployed_model_id<T: Into<String>>(self, v: T) -> Self
pub fn set_deployed_model_id<T: Into<String>>(self, v: T) -> Self
Sets the value of deployed_model_id.
Trait Implementations§
Source§impl Clone for DeployedModelRef
impl Clone for DeployedModelRef
Source§fn clone(&self) -> DeployedModelRef
fn clone(&self) -> DeployedModelRef
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 DeployedModelRef
impl Debug for DeployedModelRef
Source§impl Default for DeployedModelRef
impl Default for DeployedModelRef
Source§fn default() -> DeployedModelRef
fn default() -> DeployedModelRef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeployedModelRefwhere
DeployedModelRef: Default,
impl<'de> Deserialize<'de> for DeployedModelRefwhere
DeployedModelRef: 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 DeployedModelRef
impl Message for DeployedModelRef
Source§impl PartialEq for DeployedModelRef
impl PartialEq for DeployedModelRef
Source§impl Serialize for DeployedModelRef
impl Serialize for DeployedModelRef
impl StructuralPartialEq for DeployedModelRef
Auto Trait Implementations§
impl Freeze for DeployedModelRef
impl RefUnwindSafe for DeployedModelRef
impl Send for DeployedModelRef
impl Sync for DeployedModelRef
impl Unpin for DeployedModelRef
impl UnwindSafe for DeployedModelRef
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