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: Optional<Spacefed>,
    pub projects: Optional<Vec<String>>,
    pub cam: Optional<Vec<String>>,
    pub feeds: Optional<Feeds>,
    pub events: Optional<Vec<Event>>,
    pub radio_show: Optional<Vec<RadioShow>>,
    pub cache: Optional<Cache>,
    pub issue_report_channels: Vec<String>,
    pub state: State,
    pub sensors: Optional<Sensors>,
}

The main Space API status object.

Fields

api: String space: String url: String location: Location contact: Contact spacefed: Optional<Spacefed> projects: Optional<Vec<String>> cam: Optional<Vec<String>> feeds: Optional<Feeds> events: Optional<Vec<Event>> radio_show: Optional<Vec<RadioShow>> cache: Optional<Cache> issue_report_channels: Vec<String> state: State sensors: Optional<Sensors>

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

Create a new Status object with only the absolutely required fields.

Trait Implementations

impl Decodable for Status
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Status, __D::Error>

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 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 Debug for Status
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl ToJson for Status
[src]

fn to_json(&self) -> Json

Converts the value of self to an instance of JSON