pub struct ImageContentBuilder { /* private fields */ }Expand description
Builder for image content
Implementations§
Source§impl ImageContentBuilder
impl ImageContentBuilder
Sourcepub fn new(data: impl Into<String>, mime_type: impl Into<String>) -> Self
pub fn new(data: impl Into<String>, mime_type: impl Into<String>) -> Self
Create new image content builder
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
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) -> ImageContent
pub fn build(self) -> ImageContent
Build image content
Trait Implementations§
Source§impl Clone for ImageContentBuilder
impl Clone for ImageContentBuilder
Source§fn clone(&self) -> ImageContentBuilder
fn clone(&self) -> ImageContentBuilder
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 ImageContentBuilder
impl RefUnwindSafe for ImageContentBuilder
impl Send for ImageContentBuilder
impl Sync for ImageContentBuilder
impl Unpin for ImageContentBuilder
impl UnwindSafe for ImageContentBuilder
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