pub struct Datasheet {Show 16 fields
pub purpose: String,
pub creators: Vec<String>,
pub funding: Option<String>,
pub instance_count: Option<u64>,
pub features: HashMap<String, FeatureInfo>,
pub sensitive_features: Vec<String>,
pub collection_method: Option<String>,
pub collection_start: Option<DateTime<Utc>>,
pub collection_end: Option<DateTime<Utc>>,
pub preprocessing: Vec<PreprocessingStep>,
pub license: Option<String>,
pub access_restrictions: Vec<String>,
pub maintainer: Option<String>,
pub update_frequency: Option<String>,
pub deprecation_policy: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
Datasheet with standardized dataset documentation.
Fields§
§purpose: StringPurpose of the dataset.
creators: Vec<String>Creators of the dataset.
funding: Option<String>Funding source.
instance_count: Option<u64>Number of instances.
features: HashMap<String, FeatureInfo>Feature descriptions.
sensitive_features: Vec<String>Sensitive features that require special handling.
collection_method: Option<String>How the data was collected.
collection_start: Option<DateTime<Utc>>When the data collection started.
collection_end: Option<DateTime<Utc>>When the data collection ended.
preprocessing: Vec<PreprocessingStep>Preprocessing steps applied.
license: Option<String>License for the dataset.
access_restrictions: Vec<String>Access restrictions.
maintainer: Option<String>Who maintains the dataset.
update_frequency: Option<String>How often the dataset is updated.
deprecation_policy: Option<String>Deprecation policy.
extra: HashMap<String, Value>Additional metadata.
Implementations§
Source§impl Datasheet
impl Datasheet
Sourcepub fn add_feature(&mut self, name: impl Into<String>, info: FeatureInfo)
pub fn add_feature(&mut self, name: impl Into<String>, info: FeatureInfo)
Add a feature.
Sourcepub fn add_preprocessing(&mut self, step: PreprocessingStep)
pub fn add_preprocessing(&mut self, step: PreprocessingStep)
Add a preprocessing step.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Datasheet
impl<'de> Deserialize<'de> for Datasheet
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 Freeze for Datasheet
impl RefUnwindSafe for Datasheet
impl Send for Datasheet
impl Sync for Datasheet
impl Unpin for Datasheet
impl UnsafeUnpin for Datasheet
impl UnwindSafe for Datasheet
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