Struct spaceapi::Status
[−]
[src]
pub struct Status { pub api: String, pub space: String, pub logo: String, pub url: String, pub location: Location, pub contact: Contact, pub spacefed: Option<Spacefed>, pub projects: Option<Vec<String>>, pub cam: Option<Vec<String>>, pub feeds: Option<Feeds>, pub events: Option<Vec<Event>>, pub radio_show: Option<Vec<RadioShow>>, pub cache: Option<Cache>, pub issue_report_channels: Vec<String>, pub state: State, pub sensors: Option<Sensors>, pub extensions: BTreeMap<String, Value>, }
The main Space API status object.
Fields
api: String
space: String
logo: String
url: String
location: Location
contact: Contact
spacefed: Option<Spacefed>
projects: Option<Vec<String>>
cam: Option<Vec<String>>
feeds: Option<Feeds>
events: Option<Vec<Event>>
radio_show: Option<Vec<RadioShow>>
cache: Option<Cache>
issue_report_channels: Vec<String>
state: State
sensors: Option<Sensors>
extensions: BTreeMap<String, Value>
Methods
impl Status
[src]
fn new<S: Into<String>>(
space: S,
logo: S,
url: S,
location: Location,
contact: Contact,
issue_report_channels: Vec<String>
) -> Status
space: S,
logo: S,
url: S,
location: Location,
contact: Contact,
issue_report_channels: Vec<String>
) -> Status
Deprecated since 0.5.0
: Please use the StatusBuilder
or a struct expression instead
Create a new Status object with only the absolutely required fields.
Trait Implementations
impl Default for Status
[src]
impl Debug for Status
[src]
impl Clone for Status
[src]
fn clone(&self) -> Status
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Status
[src]
fn eq(&self, __arg_0: &Status) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Status) -> bool
This method tests for !=
.
impl Serialize for Status
[src]
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Status
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more