pub struct VerbBuilder<'a> { /* private fields */ }Expand description
A Builder that knows how to construct a Verb.
Implementations§
Source§impl<'a> VerbBuilder<'a>
impl<'a> VerbBuilder<'a>
Sourcepub fn id(self, val: &'a str) -> Result<Self, DataError>
pub fn id(self, val: &'a str) -> Result<Self, DataError>
Set the identifier of this instance.
Raise a DataError if the input string is empty or is not a valid IRI string.
Sourcepub fn display(
self,
tag: &MyLanguageTag,
label: &str,
) -> Result<Self, DataError>
pub fn display( self, tag: &MyLanguageTag, label: &str, ) -> Result<Self, DataError>
Add the given label to the display dictionary keyed by the given tag.
Raise a DataError if the tag is not a valid Language Tag.
Sourcepub fn with_display(self, map: LanguageMap) -> Result<Self, DataError>
pub fn with_display(self, map: LanguageMap) -> Result<Self, DataError>
Set (as in replace) the display property for the instance being built
w/ the one passed as argument.
Trait Implementations§
Source§impl<'a> Debug for VerbBuilder<'a>
impl<'a> Debug for VerbBuilder<'a>
Source§impl<'a> Default for VerbBuilder<'a>
impl<'a> Default for VerbBuilder<'a>
Source§fn default() -> VerbBuilder<'a>
fn default() -> VerbBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for VerbBuilder<'a>
impl<'a> RefUnwindSafe for VerbBuilder<'a>
impl<'a> Send for VerbBuilder<'a>
impl<'a> Sync for VerbBuilder<'a>
impl<'a> Unpin for VerbBuilder<'a>
impl<'a> UnsafeUnpin for VerbBuilder<'a>
impl<'a> UnwindSafe for VerbBuilder<'a>
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