pub struct CreateDatasetParams<'a> {
pub name: &'a str,
pub description: &'a str,
pub public_access: Option<bool>,
pub tags: Option<&'a [TagProvider<'a>]>,
pub keys: &'a [&'a DecthingsParameterDefinition],
}Fields§
§name: &'a strThe dataset’s name.
description: &'a strA description of the dataset.
public_access: Option<bool>If true, all Decthings users can find and use this dataset. Defaults to false.
Tags are used to specify things like dataset type (image classification, etc.) and other metadata.
keys: &'a [&'a DecthingsParameterDefinition]Each key contains separate data, allowing you to mix multiple types. For example, for an image dataset you could have an “image” of type image, and “label” of type string.
Trait Implementations§
Source§impl<'a> Clone for CreateDatasetParams<'a>
impl<'a> Clone for CreateDatasetParams<'a>
Source§fn clone(&self) -> CreateDatasetParams<'a>
fn clone(&self) -> CreateDatasetParams<'a>
Returns a duplicate 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<'a> Debug for CreateDatasetParams<'a>
impl<'a> Debug for CreateDatasetParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreateDatasetParams<'a>
impl<'a> RefUnwindSafe for CreateDatasetParams<'a>
impl<'a> Send for CreateDatasetParams<'a>
impl<'a> Sync for CreateDatasetParams<'a>
impl<'a> Unpin for CreateDatasetParams<'a>
impl<'a> UnwindSafe for CreateDatasetParams<'a>
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