#[non_exhaustive]pub struct Status {
pub message: String,
pub last_update_time: Option<Timestamp>,
pub available_replica_count: i32,
/* private fields */
}Available on crate features
deployment-resource-pool-service or endpoint-service only.Expand description
Runtime status of the deployed model.
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.message: StringOutput only. The latest deployed model’s status message (if any).
last_update_time: Option<Timestamp>Output only. The time at which the status was last updated.
available_replica_count: i32Output only. The number of available replicas of the deployed model.
Implementations§
Source§impl Status
impl Status
pub fn new() -> Self
Sourcepub fn set_message<T: Into<String>>(self, v: T) -> Self
pub fn set_message<T: Into<String>>(self, v: T) -> Self
Sets the value of message.
Sourcepub fn set_last_update_time<T>(self, v: T) -> Self
pub fn set_last_update_time<T>(self, v: T) -> Self
Sets the value of last_update_time.
Sourcepub fn set_or_clear_last_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_update_time.
Sourcepub fn set_available_replica_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_available_replica_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of available_replica_count.
Trait Implementations§
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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