[−][src]Struct phreak_facts::FactsBuilder
To facilitate the creation of facts, we offer a builder pattern.
Methods
impl FactsBuilder
[src]
pub fn new(name: String) -> Self
[src]
Start building a new Facts object with the given class name
pub fn add_attributes(
self,
field1: String,
field2: String,
field3: String
) -> Self
[src]
self,
field1: String,
field2: String,
field3: String
) -> Self
Add one triple of information
Triples can be of the format ( instance-id, attribute, value )
pub fn add_attributes_from_slice(
self,
field1: &str,
field2: &str,
field3: &str
) -> Self
[src]
self,
field1: &str,
field2: &str,
field3: &str
) -> Self
Add one triple of information
Triples can be of the format ( instance-id, attribute, value )
pub fn build(self) -> Facts
[src]
Finalize the facts object and return it
Auto Trait Implementations
impl !RefUnwindSafe for FactsBuilder
impl !Send for FactsBuilder
impl !Sync for FactsBuilder
impl Unpin for FactsBuilder
impl UnwindSafe for FactsBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,