pub struct TextContentBuilder { /* private fields */ }Expand description
Builder for text content
Implementations§
Source§impl TextContentBuilder
impl TextContentBuilder
Sourcepub fn with_audience(self, audience: impl Into<String>) -> Self
pub fn with_audience(self, audience: impl Into<String>) -> Self
Add audience annotation
Sourcepub fn with_priority(self, priority: f64) -> Self
pub fn with_priority(self, priority: f64) -> Self
Set priority annotation (0.0 to 1.0)
Sourcepub fn with_last_modified(self, timestamp: impl Into<String>) -> Self
pub fn with_last_modified(self, timestamp: impl Into<String>) -> Self
Set last modified annotation
Sourcepub fn with_language(self, language: impl Into<String>) -> Self
pub fn with_language(self, language: impl Into<String>) -> Self
Set language annotation
Sourcepub fn build(self) -> TextContent
pub fn build(self) -> TextContent
Build text content
Trait Implementations§
Source§impl Clone for TextContentBuilder
impl Clone for TextContentBuilder
Source§fn clone(&self) -> TextContentBuilder
fn clone(&self) -> TextContentBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TextContentBuilder
impl RefUnwindSafe for TextContentBuilder
impl Send for TextContentBuilder
impl Sync for TextContentBuilder
impl Unpin for TextContentBuilder
impl UnwindSafe for TextContentBuilder
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