pub struct AttributeBuilder { /* private fields */ }
Expand description
Builder for Attribute
.
Implementations§
Source§impl AttributeBuilder
impl AttributeBuilder
Sourcepub fn float_val(&mut self, value: Option<f64>) -> &mut Self
pub fn float_val(&mut self, value: Option<f64>) -> &mut Self
Float is the float value for the attribute
Sourcepub fn int_val(&mut self, value: Option<i64>) -> &mut Self
pub fn int_val(&mut self, value: Option<i64>) -> &mut Self
Int is the int value for the attribute
Sourcepub fn string_val(&mut self, value: Option<String>) -> &mut Self
pub fn string_val(&mut self, value: Option<String>) -> &mut Self
String is the string value for the attribute
Sourcepub fn bool_val(&mut self, value: Option<bool>) -> &mut Self
pub fn bool_val(&mut self, value: Option<bool>) -> &mut Self
Bool is the bool value for the attribute
Trait Implementations§
Source§impl Clone for AttributeBuilder
impl Clone for AttributeBuilder
Source§fn clone(&self) -> AttributeBuilder
fn clone(&self) -> AttributeBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for AttributeBuilder
impl RefUnwindSafe for AttributeBuilder
impl Send for AttributeBuilder
impl Sync for AttributeBuilder
impl Unpin for AttributeBuilder
impl UnwindSafe for AttributeBuilder
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