#[non_exhaustive]pub struct Dataset {
pub common: ResourceCommon,
pub resource: Id<Dataset>,
pub status: GenericStatus,
pub columns: usize,
pub excluded_fields: Vec<String>,
pub field_types: HashMap<String, u64>,
pub fields: HashMap<String, Field>,
pub input_fields: Vec<String>,
pub rows: usize,
}
Expand description
A BigML dataset. Basically a table of data with named columns.
TODO: Still lots of missing fields.
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.common: ResourceCommon
Common resource information. These fields will be serialized at the
top-level of this structure by serde
.
resource: Id<Dataset>
The ID of this resource.
status: GenericStatus
The current status of this execution.
columns: usize
The number of columns in the dataset.
excluded_fields: Vec<String>
Field IDs excluded when building this dataset.
field_types: HashMap<String, u64>
The number of fields of each type. This includes a few odd things like “preferred”, so we represent it as a string.
fields: HashMap<String, Field>
Metadata describing each field. Will be empty while object is being created.
input_fields: Vec<String>
Field IDs included when building this dataset.
rows: usize
The number of rows in this dataset.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Dataset
impl<'de> Deserialize<'de> for Dataset
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
Auto Trait Implementations§
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnwindSafe for Dataset
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