pub struct ActiveHold {
pub reason: String,
pub profile: String,
pub application_id: String,
}Expand description
Represents an active profile hold
When an application needs to temporarily hold a specific power profile, this structure tracks that information.
Fields§
§reason: StringThe reason provided for holding this profile
profile: StringThe name of the profile being held
application_id: StringThe application ID of the application holding the profile
Trait Implementations§
Source§impl Debug for ActiveHold
impl Debug for ActiveHold
Source§impl<'de> Deserialize<'de> for ActiveHold
impl<'de> Deserialize<'de> for ActiveHold
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<ActiveHold> for Value<'static>
impl From<ActiveHold> for Value<'static>
Source§fn from(s: ActiveHold) -> Self
fn from(s: ActiveHold) -> Self
Converts to this type from the input type.
Source§impl Serialize for ActiveHold
impl Serialize for ActiveHold
Source§impl TryFrom<ActiveHold> for OwnedValue
impl TryFrom<ActiveHold> for OwnedValue
Source§impl TryFrom<OwnedValue> for ActiveHold
impl TryFrom<OwnedValue> for ActiveHold
Source§impl TryFrom<Value<'static>> for ActiveHold
impl TryFrom<Value<'static>> for ActiveHold
Auto Trait Implementations§
impl Freeze for ActiveHold
impl RefUnwindSafe for ActiveHold
impl Send for ActiveHold
impl Sync for ActiveHold
impl Unpin for ActiveHold
impl UnwindSafe for ActiveHold
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
Source§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.