pub struct PropertySpec {
pub key: u32,
pub name: &'static str,
pub group: &'static str,
pub description: &'static str,
pub readable: bool,
pub writable: bool,
pub editor: &'static str,
pub unit: Option<&'static str>,
pub capability: Option<u32>,
pub choices: &'static [PropertyChoice],
}Expand description
Presentation-neutral description of a known property. Web frontends can render this as a table, form, or conversational settings surface without carrying a second copy of the protocol schema.
Fields§
§key: u32§name: &'static str§group: &'static str§description: &'static str§readable: bool§writable: bool§editor: &'static str§unit: Option<&'static str>§capability: Option<u32>§choices: &'static [PropertyChoice]Trait Implementations§
Source§impl Clone for PropertySpec
impl Clone for PropertySpec
Source§fn clone(&self) -> PropertySpec
fn clone(&self) -> PropertySpec
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PropertySpec
impl Debug for PropertySpec
Source§impl PartialEq for PropertySpec
impl PartialEq for PropertySpec
Source§impl Serialize for PropertySpec
impl Serialize for PropertySpec
impl Copy for PropertySpec
impl Eq for PropertySpec
impl StructuralPartialEq for PropertySpec
Auto Trait Implementations§
impl Freeze for PropertySpec
impl RefUnwindSafe for PropertySpec
impl Send for PropertySpec
impl Sync for PropertySpec
impl Unpin for PropertySpec
impl UnwindSafe for PropertySpec
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)