#[non_exhaustive]pub struct ConsoleOffer {
pub protocol: ConsoleProtocol,
pub note: Option<String>,
pub unavailable: Option<String>,
}Expand description
What a status says of a machine’s graphical console: its protocol, or none and why.
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.protocol: ConsoleProtocolvnc, rdp, or none.
note: Option<String>Why there is none, or what it needs (an extension pack).
Why it can’t be shown now, as the status found it on a running machine: its hypervisor gives it no display (a VM started without one). None when it can, or wasn’t looked at: the machine doesn’t run, it has none, or it is reached through Proxmox’s API, which a status doesn’t open.
Trait Implementations§
Source§impl Clone for ConsoleOffer
impl Clone for ConsoleOffer
Source§impl Debug for ConsoleOffer
impl Debug for ConsoleOffer
Source§impl<'de> Deserialize<'de> for ConsoleOffer
impl<'de> Deserialize<'de> for ConsoleOffer
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 ConsoleOffer
Source§impl JsonSchema for ConsoleOffer
impl JsonSchema for ConsoleOffer
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 moreSource§impl PartialEq for ConsoleOffer
impl PartialEq for ConsoleOffer
Source§impl Serialize for ConsoleOffer
impl Serialize for ConsoleOffer
impl StructuralPartialEq for ConsoleOffer
Auto Trait Implementations§
impl Forget for ConsoleOffer
impl Freeze for ConsoleOffer
impl Move for ConsoleOffer
impl RefUnwindSafe for ConsoleOffer
impl Send for ConsoleOffer
impl Sync for ConsoleOffer
impl Unpin for ConsoleOffer
impl UnsafeUnpin for ConsoleOffer
impl UnwindSafe for ConsoleOffer
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
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.