pub struct PartitionItemCfg {
pub start_addr: u32,
pub length: u32,
pub part_type: PartitionType,
pub debug_skip: bool,
pub hash_key: String,
}Expand description
Represents a single item in the partition table configuration.
Fields§
§start_addr: u32§length: u32§part_type: PartitionType§debug_skip: bool§hash_key: StringTrait Implementations§
Source§impl Debug for PartitionItemCfg
impl Debug for PartitionItemCfg
Source§impl Default for PartitionItemCfg
impl Default for PartitionItemCfg
Source§impl<'de> Deserialize<'de> for PartitionItemCfg
impl<'de> Deserialize<'de> for PartitionItemCfg
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 Serialize for PartitionItemCfg
impl Serialize for PartitionItemCfg
Source§impl TryInto<Record> for PartitionItemCfg
impl TryInto<Record> for PartitionItemCfg
Source§fn try_into(self) -> Result<Record, Self::Error>
fn try_into(self) -> Result<Record, Self::Error>
Converts a PartitionItemCfg instance into a Record instance.
This conversion checks if the hash_key is a valid 64-character hexadecimal string.
If valid, it maps the PartitionItemCfg attributes into the Record struct.
§Returns:
Ok(Record): ARecordinstance with values copied fromPartitionItemCfg.Err(Error): An error if thehash_keyis invalid.
Auto Trait Implementations§
impl Freeze for PartitionItemCfg
impl RefUnwindSafe for PartitionItemCfg
impl Send for PartitionItemCfg
impl Sync for PartitionItemCfg
impl Unpin for PartitionItemCfg
impl UnwindSafe for PartitionItemCfg
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