pub struct DeffactsBuilder { /* private fields */ }Expand description
Builder for creating deffacts with a fluent API
Implementations§
Source§impl DeffactsBuilder
impl DeffactsBuilder
Sourcepub fn add_fact(self, fact_type: impl Into<String>, data: TypedFacts) -> Self
pub fn add_fact(self, fact_type: impl Into<String>, data: TypedFacts) -> Self
Add a fact to this deffacts
Sourcepub fn add_facts(
self,
fact_type: impl Into<String>,
facts: Vec<TypedFacts>,
) -> Self
pub fn add_facts( self, fact_type: impl Into<String>, facts: Vec<TypedFacts>, ) -> Self
Add multiple facts of the same type
Sourcepub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
Set the description
Auto Trait Implementations§
impl Freeze for DeffactsBuilder
impl RefUnwindSafe for DeffactsBuilder
impl Send for DeffactsBuilder
impl Sync for DeffactsBuilder
impl Unpin for DeffactsBuilder
impl UnwindSafe for DeffactsBuilder
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