pub struct StatObjectBuilder { /* private fields */ }
Expand description
Builder for StatObject
.
Implementations§
Source§impl StatObjectBuilder
impl StatObjectBuilder
Sourcepub fn nested(&mut self, value: HashMap<String, StatObject>) -> &mut Self
pub fn nested(&mut self, value: HashMap<String, StatObject>) -> &mut Self
Nested is a mapping of object name to a nested stats object.
Sourcepub fn attributes(&mut self, value: HashMap<String, StatValue>) -> &mut Self
pub fn attributes(&mut self, value: HashMap<String, StatValue>) -> &mut Self
Attributes is a mapping of statistic name to its value.
Sourcepub fn build(&self) -> Result<StatObject, StatObjectBuilderError>
pub fn build(&self) -> Result<StatObject, StatObjectBuilderError>
Trait Implementations§
Source§impl Clone for StatObjectBuilder
impl Clone for StatObjectBuilder
Source§fn clone(&self) -> StatObjectBuilder
fn clone(&self) -> StatObjectBuilder
Returns a duplicate 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 StatObjectBuilder
impl RefUnwindSafe for StatObjectBuilder
impl Send for StatObjectBuilder
impl Sync for StatObjectBuilder
impl Unpin for StatObjectBuilder
impl UnwindSafe for StatObjectBuilder
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