#[non_exhaustive]pub struct Source {
pub common: ResourceCommon,
pub resource: Id<Source>,
pub status: GenericStatus,
pub file_name: Option<String>,
pub md5: String,
pub size: u64,
pub disable_datetime: Option<bool>,
pub fields: Option<HashMap<String, Field>>,
}
Expand description
A data source used by BigML.
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<Source>
The ID of this resource.
status: GenericStatus
The status of this source.
file_name: Option<String>
The name of the file uploaded.
md5: String
An MD5 hash of the uploaded file.
size: u64
The number of bytes of the source.
disable_datetime: Option<bool>
Whether BigML should automatically expand dates into year, day of week, etc.
fields: Option<HashMap<String, Field>>
The fields in this source, keyed by BigML internal ID.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
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 Resource for Source
impl Resource for Source
source§fn create_path() -> &'static str
fn create_path() -> &'static str
The URL path used to create a new resource of this type.
source§fn common(&self) -> &ResourceCommon
fn common(&self) -> &ResourceCommon
Fields shared between all resource types. These are “flattened” into the
top-level of the JSON version of this resource.
Auto Trait Implementations§
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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