pub struct ContextAgentBuilder { /* private fields */ }Expand description
A Type that knows how to construct a ContextAgent.
Implementations§
Source§impl ContextAgentBuilder
impl ContextAgentBuilder
Sourcepub fn relevant_type(self, val: &str) -> Result<Self, DataError>
pub fn relevant_type(self, val: &str) -> Result<Self, DataError>
Add IRI string to relevant_types collection if it’s not empty.
Raise DataError if it is.
Sourcepub fn build(self) -> Result<ContextAgent, DataError>
pub fn build(self) -> Result<ContextAgent, DataError>
Construct a ContextAgent instance.
Raise DataError if agent field is not set.
Trait Implementations§
Source§impl Debug for ContextAgentBuilder
impl Debug for ContextAgentBuilder
Source§impl Default for ContextAgentBuilder
impl Default for ContextAgentBuilder
Source§fn default() -> ContextAgentBuilder
fn default() -> ContextAgentBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextAgentBuilder
impl RefUnwindSafe for ContextAgentBuilder
impl Send for ContextAgentBuilder
impl Sync for ContextAgentBuilder
impl Unpin for ContextAgentBuilder
impl UnsafeUnpin for ContextAgentBuilder
impl UnwindSafe for ContextAgentBuilder
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