pub struct InterfaceSettingSpec { /* private fields */ }Implementations§
Source§impl InterfaceSettingSpec
impl InterfaceSettingSpec
pub const fn key(self) -> InterfaceSettingKey
pub fn label(self) -> String
pub fn category(self) -> InterfaceSettingCategory
pub fn tier(self) -> InterfaceSettingTier
pub fn condition(self, kind: InterfaceKind) -> Option<InterfaceSettingCondition>
pub fn is_supported(self, kind: InterfaceKind) -> bool
pub fn unsupported_reason(self, kind: InterfaceKind) -> Option<&'static str>
pub fn description(self) -> &'static str
pub fn default_hint(self, kind: InterfaceKind) -> Option<&'static str>
pub fn required_hint(self, kind: InterfaceKind) -> Option<&'static str>
pub fn inherits_when_unset(self) -> bool
pub fn effective_value(self, planned: &PlannedInterface) -> Option<String>
pub fn input_kind(self, kind: InterfaceKind) -> InterfaceSettingInputKind
pub fn accepted(self, kind: InterfaceKind) -> &'static str
pub fn format_value(self, value: impl AsRef<str>) -> String
pub fn parse( self, kind: InterfaceKind, input: &str, ) -> Result<InterfaceSetting, InterfaceSettingInputError>
pub fn is_secret(self) -> bool
Trait Implementations§
Source§impl Clone for InterfaceSettingSpec
impl Clone for InterfaceSettingSpec
Source§fn clone(&self) -> InterfaceSettingSpec
fn clone(&self) -> InterfaceSettingSpec
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 moreimpl Copy for InterfaceSettingSpec
Source§impl Debug for InterfaceSettingSpec
impl Debug for InterfaceSettingSpec
impl Eq for InterfaceSettingSpec
Source§impl PartialEq for InterfaceSettingSpec
impl PartialEq for InterfaceSettingSpec
impl StructuralPartialEq for InterfaceSettingSpec
Auto Trait Implementations§
impl Freeze for InterfaceSettingSpec
impl RefUnwindSafe for InterfaceSettingSpec
impl Send for InterfaceSettingSpec
impl Sync for InterfaceSettingSpec
impl Unpin for InterfaceSettingSpec
impl UnsafeUnpin for InterfaceSettingSpec
impl UnwindSafe for InterfaceSettingSpec
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