#[repr(u8)]pub enum BatReplaceability {
Unspecified = 0,
Notreplaceable = 1,
Userreplaceable = 2,
Factoryreplaceable = 3,
}Variants§
Unspecified = 0
The replaceability is unspecified or unknown.
Notreplaceable = 1
The battery is not replaceable.
Userreplaceable = 2
The battery is replaceable by the user or customer.
Factoryreplaceable = 3
The battery is replaceable by an authorized factory technician.
Implementations§
Trait Implementations§
Source§impl Clone for BatReplaceability
impl Clone for BatReplaceability
Source§fn clone(&self) -> BatReplaceability
fn clone(&self) -> BatReplaceability
Returns a duplicate of the value. Read more
1.0.0 · 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 BatReplaceability
impl Debug for BatReplaceability
Source§impl<'de> Deserialize<'de> for BatReplaceability
impl<'de> Deserialize<'de> for BatReplaceability
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 From<BatReplaceability> for u8
impl From<BatReplaceability> for u8
Source§fn from(val: BatReplaceability) -> Self
fn from(val: BatReplaceability) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BatReplaceability
impl PartialEq for BatReplaceability
Source§impl Serialize for BatReplaceability
impl Serialize for BatReplaceability
impl Copy for BatReplaceability
impl Eq for BatReplaceability
impl StructuralPartialEq for BatReplaceability
Auto Trait Implementations§
impl Freeze for BatReplaceability
impl RefUnwindSafe for BatReplaceability
impl Send for BatReplaceability
impl Sync for BatReplaceability
impl Unpin for BatReplaceability
impl UnwindSafe for BatReplaceability
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