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 ext_versions: Option<HashMap<String, String>>, }
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>
ext_versions: Option<HashMap<String, String>>
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
logo: S,
url: S,
location: Location,
contact: Contact,
issue_report_channels: Vec<String>)
-> Status
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: &mut S) -> Result<(), S::Error>
Serializes this value into this serializer.
impl Deserialize for Status
[src]
fn deserialize<D: Deserializer>(deserializer: &mut D) -> Result<Self, D::Error>
Deserialize this value given this Deserializer
.