pub struct Memory {
Show 78 fields pub odata_context: Option<Context>, pub odata_etag: Option<Etag>, pub odata_id: Id, pub odata_type: MustBeStr<(char<{ _ }>, M, (e, m), (o, r, y, char<{ _ }>, v, char<{ _ }>), (char<{ _ }>, char<{ _ }>, char<{ _ }>, char<{ _ }>, char<{ _ }>, char<{ _ }>), (M, e, m, o, r, y))>, pub actions: Option<Actions>, pub allocation_alignment_mi_b: Option<i64>, pub allocation_increment_mi_b: Option<i64>, pub allowed_speeds_m_hz: Option<Vec<i64>>, pub assembly: Option<IdRef>, pub base_module_type: Option<BaseModuleType>, pub bus_width_bits: Option<i64>, pub cxl: Option<CXL>, pub cache_size_mi_b: Option<i64>, pub capacity_mi_b: Option<i64>, pub certificates: Option<IdRef>, pub configuration_locked: Option<bool>, pub data_width_bits: Option<i64>, pub description: Option<Description>, pub device_id: Option<String>, pub device_locator: Option<String>, pub enabled: Option<bool>, pub environment_metrics: Option<IdRef>, pub error_correction: Option<ErrorCorrection>, pub firmware_api_version: Option<String>, pub firmware_revision: Option<String>, pub function_classes: Option<Vec<String>>, pub health_data: Option<HealthData>, pub id: Id, pub is_rank_spare_enabled: Option<bool>, pub is_spare_device_enabled: Option<bool>, pub links: Option<Links>, pub location: Option<Location>, pub location_indicator_active: Option<bool>, pub log: Option<IdRef>, pub logical_size_mi_b: Option<i64>, pub manufacturer: Option<String>, pub max_tdp_milli_watts: Option<Vec<i64>>, pub measurements: Option<Vec<MeasurementBlock>>, pub memory_device_type: Option<MemoryDeviceType>, pub memory_location: Option<MemoryLocation>, pub memory_media: Option<Vec<MemoryMedia>>, pub memory_subsystem_controller_manufacturer_id: Option<String>, pub memory_subsystem_controller_product_id: Option<String>, pub memory_type: Option<MemoryType>, pub metrics: Option<IdRef>, pub model: Option<String>, pub module_manufacturer_id: Option<String>, pub module_product_id: Option<String>, pub name: Name, pub non_volatile_size_limit_mi_b: Option<i64>, pub non_volatile_size_mi_b: Option<i64>, pub oem: Option<Oem>, pub operating_memory_modes: Option<Vec<OperatingMemoryModes>>, pub operating_speed_mhz: Option<i64>, pub operating_speed_range_m_hz: Option<ControlRangeExcerpt>, pub part_number: Option<String>, pub persistent_region_number_limit: Option<i64>, pub persistent_region_size_limit_mi_b: Option<i64>, pub persistent_region_size_max_mi_b: Option<i64>, pub poison_list_max_media_error_records: Option<i64>, pub power_management_policy: Option<PowerManagementPolicy>, pub rank_count: Option<i64>, pub regions: Option<Vec<RegionSet>>, pub security_capabilities: Option<SecurityCapabilities>, pub security_state: Option<SecurityStates>, pub security_states: Option<SecurityStateInfo>, pub serial_number: Option<String>, pub spare_device_count: Option<i64>, pub spare_part_number: Option<String>, pub status: Option<Status>, pub subsystem_device_id: Option<String>, pub subsystem_vendor_id: Option<String>, pub vendor_id: Option<String>, pub volatile_region_number_limit: Option<i64>, pub volatile_region_size_limit_mi_b: Option<i64>, pub volatile_region_size_max_mi_b: Option<i64>, pub volatile_size_limit_mi_b: Option<i64>, pub volatile_size_mi_b: Option<i64>,
}
Expand description

The Memory schema represents a memory device, such as a DIMM, and its configuration.

Fields§

§odata_context: Option<Context>§odata_etag: Option<Etag>§odata_id: Id§odata_type: MustBeStr<(char<{ _ }>, M, (e, m), (o, r, y, char<{ _ }>, v, char<{ _ }>), (char<{ _ }>, char<{ _ }>, char<{ _ }>, char<{ _ }>, char<{ _ }>, char<{ _ }>), (M, e, m, o, r, y))>§actions: Option<Actions>§allocation_alignment_mi_b: Option<i64>

The boundary that memory regions are allocated on, measured in mebibytes (MiB).

§allocation_increment_mi_b: Option<i64>

The size of the smallest unit of allocation for a memory region in mebibytes (MiB).

§allowed_speeds_m_hz: Option<Vec<i64>>

Speeds supported by this memory device.

§assembly: Option<IdRef>§base_module_type: Option<BaseModuleType>§bus_width_bits: Option<i64>

The bus width, in bits.

§cxl: Option<CXL>§cache_size_mi_b: Option<i64>

Total size of the cache portion memory in MiB.

§capacity_mi_b: Option<i64>

Memory capacity in mebibytes (MiB).

§certificates: Option<IdRef>§configuration_locked: Option<bool>

An indication of whether the configuration of this memory device is locked and cannot be altered.

§data_width_bits: Option<i64>

Data width in bits.

§description: Option<Description>§device_id: Option<String>

Device ID.

§device_locator: Option<String>

Location of the memory device in the platform.

§enabled: Option<bool>

An indication of whether this memory is enabled.

§environment_metrics: Option<IdRef>§error_correction: Option<ErrorCorrection>§firmware_api_version: Option<String>

Version of API supported by the firmware.

§firmware_revision: Option<String>

Revision of firmware on the memory controller.

§function_classes: Option<Vec<String>>

Function classes by the memory device.

§health_data: Option<HealthData>§id: Id§is_rank_spare_enabled: Option<bool>

An indication of whether rank spare is enabled for this memory device.

§is_spare_device_enabled: Option<bool>

An indication of whether a spare device is enabled for this memory device.

§links: Option<Links>§location: Option<Location>§location_indicator_active: Option<bool>

An indicator allowing an operator to physically locate this resource.

§log: Option<IdRef>§logical_size_mi_b: Option<i64>

Total size of the logical memory in MiB.

§manufacturer: Option<String>

The memory device manufacturer.

§max_tdp_milli_watts: Option<Vec<i64>>

Set of maximum power budgets supported by the memory device in milliwatts.

§measurements: Option<Vec<MeasurementBlock>>

An array of DSP0274-defined measurement blocks.

§memory_device_type: Option<MemoryDeviceType>§memory_location: Option<MemoryLocation>§memory_media: Option<Vec<MemoryMedia>>

Media of this memory device.

§memory_subsystem_controller_manufacturer_id: Option<String>

The manufacturer ID of the memory subsystem controller of this memory device.

§memory_subsystem_controller_product_id: Option<String>

The product ID of the memory subsystem controller of this memory device.

§memory_type: Option<MemoryType>§metrics: Option<IdRef>§model: Option<String>

The product model number of this device.

§module_manufacturer_id: Option<String>

The manufacturer ID of this memory device.

§module_product_id: Option<String>

The product ID of this memory device.

§name: Name§non_volatile_size_limit_mi_b: Option<i64>

The total non-volatile memory capacity in mebibytes (MiB).

§non_volatile_size_mi_b: Option<i64>

Total size of the non-volatile portion memory in MiB.

§oem: Option<Oem>§operating_memory_modes: Option<Vec<OperatingMemoryModes>>

Memory modes supported by the memory device.

§operating_speed_mhz: Option<i64>

Operating speed of the memory device in MHz or MT/s as appropriate.

§operating_speed_range_m_hz: Option<ControlRangeExcerpt>§part_number: Option<String>

The product part number of this device.

§persistent_region_number_limit: Option<i64>

Total number of persistent regions this memory device can support.

§persistent_region_size_limit_mi_b: Option<i64>

Total size of persistent regions in mebibytes (MiB).

§persistent_region_size_max_mi_b: Option<i64>

Maximum size of a single persistent region in mebibytes (MiB).

§poison_list_max_media_error_records: Option<i64>

The maximum number of media error records this device can track in its poison list.

§power_management_policy: Option<PowerManagementPolicy>§rank_count: Option<i64>

Number of ranks available in the memory device.

§regions: Option<Vec<RegionSet>>

Memory regions information within the memory device.

§security_capabilities: Option<SecurityCapabilities>§security_state: Option<SecurityStates>§security_states: Option<SecurityStateInfo>§serial_number: Option<String>

The product serial number of this device.

§spare_device_count: Option<i64>

Number of unused spare devices available in the memory device.

§spare_part_number: Option<String>

The spare part number of the memory.

§status: Option<Status>§subsystem_device_id: Option<String>

Subsystem device ID.

§subsystem_vendor_id: Option<String>

SubSystem vendor ID.

§vendor_id: Option<String>

Vendor ID.

§volatile_region_number_limit: Option<i64>

Total number of volatile regions this memory device can support.

§volatile_region_size_limit_mi_b: Option<i64>

Total size of volatile regions in mebibytes (MiB).

§volatile_region_size_max_mi_b: Option<i64>

Maximum size of a single volatile region in mebibytes (MiB).

§volatile_size_limit_mi_b: Option<i64>

The total volatile memory capacity in mebibytes (MiB).

§volatile_size_mi_b: Option<i64>

Total size of the volatile portion memory in MiB.

Trait Implementations§

source§

impl Clone for Memory

source§

fn clone(&self) -> Memory

Returns a copy 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 Memory

source§

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

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

impl Default for Memory

source§

fn default() -> Memory

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Memory

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 Serialize for Memory

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

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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