[][src]Struct bigml::resource::ResourceCommon

pub struct ResourceCommon {
    pub category: i64,
    pub code: u16,
    pub dev: Option<bool>,
    pub description: String,
    pub name: String,
    pub shared: bool,
    pub subscription: bool,
    pub tags: Vec<String>,
    // some fields omitted
}

Fields which are present on all resources. This struct is "flattened" into all types which implement Resource using #[serde(flatten)], giving us a sort of inheritence.

Fields

category: i64

Used to classify by industry or category. 0 is "Miscellaneous".

code: u16

An HTTP status code, typically either 201 or 200.

TODO: Deserialize as a reqwest::StatusCode?

dev: Option<bool>

Was this created in development mode?

description: String

Text describing this resource. May contain limited Markdown.

name: String

The name of this resource.

shared: bool

Has this been shared using a private link?

subscription: bool

Was this created using a subscription plan?

tags: Vec<String>

User-defined tags.

Trait Implementations

impl Updatable for ResourceCommon[src]

type Update = ResourceCommonUpdate

The type of the data used to update this value.

impl Clone for ResourceCommon[src]

impl Debug for ResourceCommon[src]

impl Serialize for ResourceCommon[src]

impl<'de> Deserialize<'de> for ResourceCommon[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err