pub struct RecommendationBuilder { /* private fields */ }
Expand description
Builder for Recommendation
.
Implementations§
Source§impl RecommendationBuilder
impl RecommendationBuilder
pub fn meta(&mut self, value: HashMap<String, Value>) -> &mut Self
pub fn id(&mut self, value: String) -> &mut Self
pub fn job_version(&mut self, value: u64) -> &mut Self
pub fn resource(&mut self, value: String) -> &mut Self
pub fn value(&mut self, value: i64) -> &mut Self
pub fn current(&mut self, value: i64) -> &mut Self
pub fn stats(&mut self, value: HashMap<String, f64>) -> &mut Self
pub fn enforce_version(&mut self, value: bool) -> &mut Self
pub fn create_index(&mut self, value: u64) -> &mut Self
pub fn namespace(&mut self, value: String) -> &mut Self
pub fn group(&mut self, value: String) -> &mut Self
pub fn task(&mut self, value: String) -> &mut Self
pub fn modify_index(&mut self, value: u64) -> &mut Self
pub fn region(&mut self, value: String) -> &mut Self
pub fn job_id(&mut self, value: String) -> &mut Self
pub fn submit_time(&mut self, value: i64) -> &mut Self
Sourcepub fn build(&self) -> Result<Recommendation, RecommendationBuilderError>
pub fn build(&self) -> Result<Recommendation, RecommendationBuilderError>
Trait Implementations§
Source§impl Clone for RecommendationBuilder
impl Clone for RecommendationBuilder
Source§fn clone(&self) -> RecommendationBuilder
fn clone(&self) -> RecommendationBuilder
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 RecommendationBuilder
impl RefUnwindSafe for RecommendationBuilder
impl Send for RecommendationBuilder
impl Sync for RecommendationBuilder
impl Unpin for RecommendationBuilder
impl UnwindSafe for RecommendationBuilder
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