pub struct ObjectSummary {
pub elements: BTreeMap<String, u64>,
pub topology: Option<ObjectTopology>,
pub units: Option<ObjectUnits>,
}Expand description
Element counts, topology, and unit conventions, for a quick read of a package without deserializing the whole payload.
Fields§
§elements: BTreeMap<String, u64>Element type name -> count, e.g. {"buses": 118, "branches": 186}.
topology: Option<ObjectTopology>§units: Option<ObjectUnits>Trait Implementations§
Source§impl Clone for ObjectSummary
impl Clone for ObjectSummary
Source§fn clone(&self) -> ObjectSummary
fn clone(&self) -> ObjectSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectSummary
impl Debug for ObjectSummary
Source§impl Default for ObjectSummary
impl Default for ObjectSummary
Source§fn default() -> ObjectSummary
fn default() -> ObjectSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ObjectSummary
impl<'de> Deserialize<'de> for ObjectSummary
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 JsonSchema for ObjectSummary
impl JsonSchema for ObjectSummary
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ObjectSummary
impl PartialEq for ObjectSummary
Source§impl Serialize for ObjectSummary
impl Serialize for ObjectSummary
impl StructuralPartialEq for ObjectSummary
Auto Trait Implementations§
impl Freeze for ObjectSummary
impl RefUnwindSafe for ObjectSummary
impl Send for ObjectSummary
impl Sync for ObjectSummary
impl Unpin for ObjectSummary
impl UnsafeUnpin for ObjectSummary
impl UnwindSafe for ObjectSummary
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