Struct Memory

Source
pub struct Memory {
Show 78 fields pub odata_context: Option<Context>, pub odata_etag: Option<Etag>, pub odata_id: Id, pub odata_type: Type, 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. It also describes the location, such as a slot, socket, or bay, where a unit can be installed, by populating a resource instance with an absent state if a unit is not present.

Fields§

§odata_context: Option<Context>§odata_etag: Option<Etag>§odata_id: Id§odata_type: Type§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 duplicate of the value. Read more
1.0.0 · Source§

const 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() -> Self

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 Metadata<'static> for Memory

Source§

const JSON_SCHEMA: &'static str = "Memory.v1_17_1.json"

Name of the json-schema file that describes the entity that implements this trait. Should be only the file name, so that it can be resolved relative to the URL of the redfish service, or the public Redfish schema index.
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§

§

impl Freeze for Memory

§

impl RefUnwindSafe for Memory

§

impl Send for Memory

§

impl Sync for Memory

§

impl Unpin for Memory

§

impl UnwindSafe for Memory

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>,