pub struct EvolutionRelationBuilder { /* private fields */ }Expand description
Builder for EvolutionRelation with fluent API.
Implementations§
Source§impl EvolutionRelationBuilder
impl EvolutionRelationBuilder
Sourcepub fn new(
source_id: String,
target_id: String,
evolution_type: EvolutionType,
) -> Self
pub fn new( source_id: String, target_id: String, evolution_type: EvolutionType, ) -> Self
Create a new builder with required fields.
Sourcepub fn with_reason(self, reason: String) -> Self
pub fn with_reason(self, reason: String) -> Self
Set reason.
Sourcepub fn with_confidence(self, confidence: f32) -> Self
pub fn with_confidence(self, confidence: f32) -> Self
Set confidence.
Sourcepub fn with_created_at(self, created_at: DateTime<Utc>) -> Self
pub fn with_created_at(self, created_at: DateTime<Utc>) -> Self
Set created_at (for DST).
Sourcepub fn build(self) -> EvolutionRelation
pub fn build(self) -> EvolutionRelation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EvolutionRelationBuilder
impl RefUnwindSafe for EvolutionRelationBuilder
impl Send for EvolutionRelationBuilder
impl Sync for EvolutionRelationBuilder
impl Unpin for EvolutionRelationBuilder
impl UnwindSafe for EvolutionRelationBuilder
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