pub struct PropertiesKeyBuilder { /* private fields */ }
Expand description
Builder for PropertiesKey
s.
Implementations§
Source§impl PropertiesKeyBuilder
impl PropertiesKeyBuilder
Sourcepub fn section_key(self, section_key: impl Into<String>) -> Self
pub fn section_key(self, section_key: impl Into<String>) -> Self
Set the section key for this builder.
Sourcepub fn section_name(self, section_name: impl Into<String>) -> Self
pub fn section_name(self, section_name: impl Into<String>) -> Self
Set the section name for this builder.
Sourcepub fn property_name(self, property_name: impl Into<String>) -> Self
pub fn property_name(self, property_name: impl Into<String>) -> Self
Set the property name for this builder.
Sourcepub fn sub_property_name(self, sub_property_name: impl Into<String>) -> Self
pub fn sub_property_name(self, sub_property_name: impl Into<String>) -> Self
Set the sub-property name for this builder.
Sourcepub fn build(self) -> Result<PropertiesKey, String>
pub fn build(self) -> Result<PropertiesKey, String>
Build this builder. If all required fields are set,
Ok(PropertiesKey)
is returned. Otherwise, an error is returned.
Trait Implementations§
Source§impl Debug for PropertiesKeyBuilder
impl Debug for PropertiesKeyBuilder
Source§impl Default for PropertiesKeyBuilder
impl Default for PropertiesKeyBuilder
Source§fn default() -> PropertiesKeyBuilder
fn default() -> PropertiesKeyBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PropertiesKeyBuilder
impl RefUnwindSafe for PropertiesKeyBuilder
impl Send for PropertiesKeyBuilder
impl Sync for PropertiesKeyBuilder
impl Unpin for PropertiesKeyBuilder
impl UnwindSafe for PropertiesKeyBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.