pub struct Machines {
pub count: Positive,
pub min_running: u32,
pub autostart: bool,
pub autostop: bool,
}Expand description
How many machines run, and whether the platform may stop them.
Fields§
§count: PositiveHow many machines the application has.
min_running: u32How many stay running when idle.
autostart: boolWhether a request to a stopped machine starts it.
autostop: boolWhether an idle machine is stopped.
Trait Implementations§
impl Copy for Machines
Source§impl<'de> Deserialize<'de> for Machines
impl<'de> Deserialize<'de> for Machines
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
impl Eq for Machines
Source§impl JsonSchema for Machines
impl JsonSchema for Machines
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Machines
Auto Trait Implementations§
impl Freeze for Machines
impl RefUnwindSafe for Machines
impl Send for Machines
impl Sync for Machines
impl Unpin for Machines
impl UnsafeUnpin for Machines
impl UnwindSafe for Machines
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.