pub struct ScoreConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ScoreConfigBuilder<S>
impl<S: State> ScoreConfigBuilder<S>
Sourcepub fn build(self) -> ScoreConfigwhere
S: IsComplete,
pub fn build(self) -> ScoreConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: String) -> ScoreConfigBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: String) -> ScoreConfigBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Sourcepub fn name(self, value: String) -> ScoreConfigBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(self, value: String) -> ScoreConfigBuilder<SetName<S>>where
S::Name: IsUnset,
Required.
Sourcepub fn created_at(self, value: String) -> ScoreConfigBuilder<SetCreatedAt<S>>where
S::CreatedAt: IsUnset,
pub fn created_at(self, value: String) -> ScoreConfigBuilder<SetCreatedAt<S>>where
S::CreatedAt: IsUnset,
Required.
Sourcepub fn updated_at(self, value: String) -> ScoreConfigBuilder<SetUpdatedAt<S>>where
S::UpdatedAt: IsUnset,
pub fn updated_at(self, value: String) -> ScoreConfigBuilder<SetUpdatedAt<S>>where
S::UpdatedAt: IsUnset,
Required.
Sourcepub fn project_id(self, value: String) -> ScoreConfigBuilder<SetProjectId<S>>where
S::ProjectId: IsUnset,
pub fn project_id(self, value: String) -> ScoreConfigBuilder<SetProjectId<S>>where
S::ProjectId: IsUnset,
Required.
Sourcepub fn data_type(
self,
value: ScoreDataType,
) -> ScoreConfigBuilder<SetDataType<S>>where
S::DataType: IsUnset,
pub fn data_type(
self,
value: ScoreDataType,
) -> ScoreConfigBuilder<SetDataType<S>>where
S::DataType: IsUnset,
Required.
Sourcepub fn is_archived(self, value: bool) -> ScoreConfigBuilder<SetIsArchived<S>>where
S::IsArchived: IsUnset,
pub fn is_archived(self, value: bool) -> ScoreConfigBuilder<SetIsArchived<S>>where
S::IsArchived: IsUnset,
Required.
Whether the score config is archived. Defaults to false
Sourcepub fn min_value(self, value: Option<f64>) -> ScoreConfigBuilder<SetMinValue<S>>where
S::MinValue: IsUnset,
pub fn min_value(self, value: Option<f64>) -> ScoreConfigBuilder<SetMinValue<S>>where
S::MinValue: IsUnset,
Sourcepub fn maybe_min_value(
self,
value: Option<Option<f64>>,
) -> ScoreConfigBuilder<SetMinValue<S>>where
S::MinValue: IsUnset,
pub fn maybe_min_value(
self,
value: Option<Option<f64>>,
) -> ScoreConfigBuilder<SetMinValue<S>>where
S::MinValue: IsUnset,
Sourcepub fn max_value(self, value: Option<f64>) -> ScoreConfigBuilder<SetMaxValue<S>>where
S::MaxValue: IsUnset,
pub fn max_value(self, value: Option<f64>) -> ScoreConfigBuilder<SetMaxValue<S>>where
S::MaxValue: IsUnset,
Sourcepub fn maybe_max_value(
self,
value: Option<Option<f64>>,
) -> ScoreConfigBuilder<SetMaxValue<S>>where
S::MaxValue: IsUnset,
pub fn maybe_max_value(
self,
value: Option<Option<f64>>,
) -> ScoreConfigBuilder<SetMaxValue<S>>where
S::MaxValue: IsUnset,
Sourcepub fn categories(
self,
value: Option<Vec<ConfigCategory>>,
) -> ScoreConfigBuilder<SetCategories<S>>where
S::Categories: IsUnset,
pub fn categories(
self,
value: Option<Vec<ConfigCategory>>,
) -> ScoreConfigBuilder<SetCategories<S>>where
S::Categories: IsUnset,
Sourcepub fn maybe_categories(
self,
value: Option<Option<Vec<ConfigCategory>>>,
) -> ScoreConfigBuilder<SetCategories<S>>where
S::Categories: IsUnset,
pub fn maybe_categories(
self,
value: Option<Option<Vec<ConfigCategory>>>,
) -> ScoreConfigBuilder<SetCategories<S>>where
S::Categories: IsUnset,
Sourcepub fn description(
self,
value: Option<String>,
) -> ScoreConfigBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: Option<String>,
) -> ScoreConfigBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn maybe_description(
self,
value: Option<Option<String>>,
) -> ScoreConfigBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<Option<String>>,
) -> ScoreConfigBuilder<SetDescription<S>>where
S::Description: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ScoreConfigBuilder<S>
impl<S> RefUnwindSafe for ScoreConfigBuilder<S>
impl<S> Send for ScoreConfigBuilder<S>
impl<S> Sync for ScoreConfigBuilder<S>
impl<S> Unpin for ScoreConfigBuilder<S>
impl<S> UnwindSafe for ScoreConfigBuilder<S>
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