pub struct Cancellation {
    pub ipv4: Option<Ipv4Addr>,
    pub id: u32,
    pub name: String,
    pub earliest_cancellation_date: String,
    pub cancelled: bool,
    pub reservation_possible: bool,
    pub reserved: bool,
    pub cancellation_date: Option<String>,
    pub cancellation_reason: Vec<String>,
}
Expand description

If the server has been cancelled the struct will reflect this status, otherwise it will contain information about when the earliest possible cancellation is, and whether reserving the server upon cancellation is possible

Fields

ipv4: Option<Ipv4Addr>id: u32name: Stringearliest_cancellation_date: Stringcancelled: boolreservation_possible: boolreserved: boolcancellation_date: Option<String>cancellation_reason: Vec<String>

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more