Struct ofdb_entities::rating::AvgRatingsBuilder
source · pub struct AvgRatingsBuilder {
pub diversity: AvgRatingValueBuilder,
pub fairness: AvgRatingValueBuilder,
pub humanity: AvgRatingValueBuilder,
pub renewable: AvgRatingValueBuilder,
pub solidarity: AvgRatingValueBuilder,
pub transparency: AvgRatingValueBuilder,
}
Fields§
§diversity: AvgRatingValueBuilder
§fairness: AvgRatingValueBuilder
§humanity: AvgRatingValueBuilder
§renewable: AvgRatingValueBuilder
§solidarity: AvgRatingValueBuilder
§transparency: AvgRatingValueBuilder
Implementations§
source§impl AvgRatingsBuilder
impl AvgRatingsBuilder
pub fn add(&mut self, ctx: RatingContext, val: RatingValue)
pub fn build(self) -> AvgRatings
Trait Implementations§
source§impl AddAssign<(RatingContext, RatingValue)> for AvgRatingsBuilder
impl AddAssign<(RatingContext, RatingValue)> for AvgRatingsBuilder
source§fn add_assign(&mut self, rhs: (RatingContext, RatingValue))
fn add_assign(&mut self, rhs: (RatingContext, RatingValue))
Performs the
+=
operation. Read moresource§impl Clone for AvgRatingsBuilder
impl Clone for AvgRatingsBuilder
source§fn clone(&self) -> AvgRatingsBuilder
fn clone(&self) -> AvgRatingsBuilder
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 moresource§impl Debug for AvgRatingsBuilder
impl Debug for AvgRatingsBuilder
source§impl Default for AvgRatingsBuilder
impl Default for AvgRatingsBuilder
source§fn default() -> AvgRatingsBuilder
fn default() -> AvgRatingsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AvgRatingsBuilder
impl Send for AvgRatingsBuilder
impl Sync for AvgRatingsBuilder
impl Unpin for AvgRatingsBuilder
impl UnwindSafe for AvgRatingsBuilder
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