pub struct ComputeDrainProgress {
pub blockers: Vec<ComputeDrainBlocker>,
pub drain_deadline_at: Option<String>,
pub drain_requested_at: Option<String>,
pub drained_at: Option<String>,
pub force: bool,
pub machine_id: String,
pub replica_count: i64,
pub stalled: bool,
pub status: ComputeDrainProgressStatus,
}Expand description
ComputeDrainProgress
JSON schema
{
"type": "object",
"required": [
"force",
"machineId",
"replicaCount",
"stalled",
"status"
],
"properties": {
"blockers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ComputeDrainBlocker"
}
},
"drainDeadlineAt": {
"type": [
"string",
"null"
]
},
"drainRequestedAt": {
"type": [
"string",
"null"
]
},
"drainedAt": {
"type": [
"string",
"null"
]
},
"force": {
"type": "boolean"
},
"machineId": {
"type": "string"
},
"replicaCount": {
"type": "integer",
"format": "int64"
},
"stalled": {
"type": "boolean"
},
"status": {
"$ref": "#/components/schemas/ComputeDrainProgressStatus"
}
}
}Fields§
§blockers: Vec<ComputeDrainBlocker>§drain_deadline_at: Option<String>§drain_requested_at: Option<String>§drained_at: Option<String>§force: bool§machine_id: String§replica_count: i64§stalled: bool§status: ComputeDrainProgressStatusImplementations§
Source§impl ComputeDrainProgress
impl ComputeDrainProgress
pub fn builder() -> ComputeDrainProgress
Trait Implementations§
Source§impl Clone for ComputeDrainProgress
impl Clone for ComputeDrainProgress
Source§fn clone(&self) -> ComputeDrainProgress
fn clone(&self) -> ComputeDrainProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComputeDrainProgress
impl Debug for ComputeDrainProgress
Source§impl<'de> Deserialize<'de> for ComputeDrainProgress
impl<'de> Deserialize<'de> for ComputeDrainProgress
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 From<&ComputeDrainProgress> for ComputeDrainProgress
impl From<&ComputeDrainProgress> for ComputeDrainProgress
Source§fn from(value: &ComputeDrainProgress) -> Self
fn from(value: &ComputeDrainProgress) -> Self
Converts to this type from the input type.
Source§impl From<ComputeDrainProgress> for ComputeDrainProgress
impl From<ComputeDrainProgress> for ComputeDrainProgress
Source§fn from(value: ComputeDrainProgress) -> Self
fn from(value: ComputeDrainProgress) -> Self
Converts to this type from the input type.
Source§impl Serialize for ComputeDrainProgress
impl Serialize for ComputeDrainProgress
Source§impl TryFrom<ComputeDrainProgress> for ComputeDrainProgress
impl TryFrom<ComputeDrainProgress> for ComputeDrainProgress
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ComputeDrainProgress) -> Result<Self, ConversionError>
fn try_from(value: ComputeDrainProgress) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ComputeDrainProgress
impl RefUnwindSafe for ComputeDrainProgress
impl Send for ComputeDrainProgress
impl Sync for ComputeDrainProgress
impl Unpin for ComputeDrainProgress
impl UnsafeUnpin for ComputeDrainProgress
impl UnwindSafe for ComputeDrainProgress
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