Skip to main content

AgsiDataPropertySummary

Struct AgsiDataPropertySummary 

Source
pub struct AgsiDataPropertySummary {
    pub case_id: Option<String>,
    pub code_id: AgsiDataPropertySummaryCodeId,
    pub data_id: Option<String>,
    pub remarks: Option<String>,
    pub value_count: Option<f64>,
    pub value_max: Option<f64>,
    pub value_mean: Option<f64>,
    pub value_min: Option<f64>,
    pub value_std_dev: Option<f64>,
    pub value_summary_text: Option<String>,
}
Expand description

Each agsiDataPropertySummary object provides a summary of data for a single defined property. Refer to 7.2. Data rules and conventions for further details.

JSON schema
{
 "description": "Each agsiDataPropertySummary object provides a summary of data for a single defined property. Refer to 7.2. Data rules and conventions for further details.",
 "type": "object",
 "required": [
   "codeID"
 ],
 "properties": {
   "caseID": {
     "description": "Code (or text) that identifies the use case for a property. See 7.2.4. Use of (data) case for example use cases. If the input is a code, this shall be defined in an agsProjectCode object, or in the code dictionary defined in the relevant agsProjectCodeSet object. May be left blank or omitted, but the combination of codeID and caseID shall be unique for the instances of this object contained within a single parent object instance.",
     "type": "string",
     "example": "Clay"
   },
   "codeID": {
     "description": "Code that identifies the property. Codes should be defined in either an agsProjectCode object, or in the code dictionary defined in the relevant agsProjectCodeSet object. The codes used by the instances of this object contained within a single parent object instance shall be unique, except that if caseID is used then only the combination of codeID and caseID needs to be unique.",
     "type": "string",
     "minLength": 1,
     "example": "TRIG_CU"
   },
   "dataID": {
     "description": "Identifier for this data object. May be local to this file but all identifiers used within the Data group of objects shall be unique. Alternatively a UUID may be used (recommended for large datasets). Use of this attribute is optional and it is not referenced anywhere else in the schema, but it may be beneficial to include it to help with data control and integrity, and some applications may require or benefit from it.",
     "type": "string",
     "example": "42f18976-7352-4f67-9a6e-df89788343a7"
   },
   "remarks": {
     "description": "Additional remarks, if required.",
     "type": "string",
     "example": "Some remarks if required"
   },
   "valueCount": {
     "description": "Number of results.",
     "type": "number",
     "example": 58
   },
   "valueMax": {
     "description": "Maximum value.",
     "type": "number",
     "example": 345
   },
   "valueMean": {
     "description": "Mean value.",
     "type": "number",
     "example": 178.2
   },
   "valueMin": {
     "description": "Minimum value.",
     "type": "number",
     "example": 78
   },
   "valueStdDev": {
     "description": "Standard deviation.",
     "type": "number",
     "example": 36.4
   },
   "valueSummaryText": {
     "description": "Alternative text based summary, if required or preferred. May be needed when some or all values are not numeric, e.g. <0.001.",
     "type": "string",
     "example": "<0.01 to 12.57, mean 3.21, (16 results)"
   }
 },
 "additionalProperties": false
}

Fields§

§case_id: Option<String>

Code (or text) that identifies the use case for a property. See 7.2.4. Use of (data) case for example use cases. If the input is a code, this shall be defined in an agsProjectCode object, or in the code dictionary defined in the relevant agsProjectCodeSet object. May be left blank or omitted, but the combination of codeID and caseID shall be unique for the instances of this object contained within a single parent object instance.

§code_id: AgsiDataPropertySummaryCodeId

Code that identifies the property. Codes should be defined in either an agsProjectCode object, or in the code dictionary defined in the relevant agsProjectCodeSet object. The codes used by the instances of this object contained within a single parent object instance shall be unique, except that if caseID is used then only the combination of codeID and caseID needs to be unique.

§data_id: Option<String>

Identifier for this data object. May be local to this file but all identifiers used within the Data group of objects shall be unique. Alternatively a UUID may be used (recommended for large datasets). Use of this attribute is optional and it is not referenced anywhere else in the schema, but it may be beneficial to include it to help with data control and integrity, and some applications may require or benefit from it.

§remarks: Option<String>

Additional remarks, if required.

§value_count: Option<f64>§value_max: Option<f64>§value_mean: Option<f64>§value_min: Option<f64>§value_std_dev: Option<f64>§value_summary_text: Option<String>

Alternative text based summary, if required or preferred. May be needed when some or all values are not numeric, e.g. <0.001.

Implementations§

Trait Implementations§

Source§

impl Clone for AgsiDataPropertySummary

Source§

fn clone(&self) -> AgsiDataPropertySummary

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AgsiDataPropertySummary

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AgsiDataPropertySummary

Source§

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 From<&AgsiDataPropertySummary> for AgsiDataPropertySummary

Source§

fn from(value: &AgsiDataPropertySummary) -> Self

Converts to this type from the input type.
Source§

impl From<AgsiDataPropertySummary> for AgsiDataPropertySummary

Source§

fn from(value: AgsiDataPropertySummary) -> Self

Converts to this type from the input type.
Source§

impl Serialize for AgsiDataPropertySummary

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<AgsiDataPropertySummary> for AgsiDataPropertySummary

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: AgsiDataPropertySummary) -> Result<Self, ConversionError>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,