pub struct NodeControlPresentation {
pub placeholder: Option<String>,
pub help_text: Option<String>,
pub icon_key: Option<String>,
pub unit: Option<String>,
pub language: Option<String>,
pub compact_label: bool,
pub multiline: bool,
}Expand description
Presentation hints for adapter-local widgets.
Fields§
§placeholder: Option<String>§help_text: Option<String>§icon_key: Option<String>§unit: Option<String>§language: Option<String>§compact_label: bool§multiline: boolImplementations§
Source§impl NodeControlPresentation
impl NodeControlPresentation
pub fn with_placeholder(self, placeholder: impl Into<String>) -> Self
pub fn with_help_text(self, help_text: impl Into<String>) -> Self
pub fn with_icon_key(self, icon_key: impl Into<String>) -> Self
pub fn with_unit(self, unit: impl Into<String>) -> Self
pub fn with_language(self, language: impl Into<String>) -> Self
pub fn compact_label(self) -> Self
pub fn multiline(self) -> Self
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for NodeControlPresentation
impl Clone for NodeControlPresentation
Source§fn clone(&self) -> NodeControlPresentation
fn clone(&self) -> NodeControlPresentation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NodeControlPresentation
impl Debug for NodeControlPresentation
Source§impl Default for NodeControlPresentation
impl Default for NodeControlPresentation
Source§fn default() -> NodeControlPresentation
fn default() -> NodeControlPresentation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeControlPresentation
impl<'de> Deserialize<'de> for NodeControlPresentation
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
impl Eq for NodeControlPresentation
Source§impl PartialEq for NodeControlPresentation
impl PartialEq for NodeControlPresentation
Source§fn eq(&self, other: &NodeControlPresentation) -> bool
fn eq(&self, other: &NodeControlPresentation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeControlPresentation
impl Serialize for NodeControlPresentation
impl StructuralPartialEq for NodeControlPresentation
Auto Trait Implementations§
impl Freeze for NodeControlPresentation
impl RefUnwindSafe for NodeControlPresentation
impl Send for NodeControlPresentation
impl Sync for NodeControlPresentation
impl Unpin for NodeControlPresentation
impl UnsafeUnpin for NodeControlPresentation
impl UnwindSafe for NodeControlPresentation
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.