Struct bigml::resource::ResourceCommon
source · #[non_exhaustive]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>,
}
Expand description
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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.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.
Has this been shared using a private link?
subscription: bool
Was this created using a subscription plan?
User-defined tags.
Trait Implementations§
source§impl Clone for ResourceCommon
impl Clone for ResourceCommon
source§fn clone(&self) -> ResourceCommon
fn clone(&self) -> ResourceCommon
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResourceCommon
impl Debug for ResourceCommon
source§impl<'de> Deserialize<'de> for ResourceCommon
impl<'de> Deserialize<'de> for ResourceCommon
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ResourceCommon
impl Serialize for ResourceCommon
source§impl Updatable for ResourceCommon
impl Updatable for ResourceCommon
§type Update = ResourceCommonUpdate
type Update = ResourceCommonUpdate
The type of the data used to update this value.
Auto Trait Implementations§
impl RefUnwindSafe for ResourceCommon
impl Send for ResourceCommon
impl Sync for ResourceCommon
impl Unpin for ResourceCommon
impl UnwindSafe for ResourceCommon
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more