pub enum StatusSource {
Command {
command: String,
pointer: String,
},
Hook {
hook: String,
},
}Expand description
Where a status reads its value.
Variants§
Command
A read_only command and a JSON pointer into its answer.
Hook
A status hook registered in Rust.
Trait Implementations§
Source§impl Clone for StatusSource
impl Clone for StatusSource
Source§fn clone(&self) -> StatusSource
fn clone(&self) -> StatusSource
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 StatusSource
impl Debug for StatusSource
Source§impl<'de> Deserialize<'de> for StatusSource
impl<'de> Deserialize<'de> for StatusSource
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 PartialEq for StatusSource
impl PartialEq for StatusSource
Source§impl Serialize for StatusSource
impl Serialize for StatusSource
impl StructuralPartialEq for StatusSource
Auto Trait Implementations§
impl Freeze for StatusSource
impl RefUnwindSafe for StatusSource
impl Send for StatusSource
impl Sync for StatusSource
impl Unpin for StatusSource
impl UnsafeUnpin for StatusSource
impl UnwindSafe for StatusSource
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