pub struct AudioContentBuilder { /* private fields */ }Expand description
Builder for audio content
Implementations§
Source§impl AudioContentBuilder
impl AudioContentBuilder
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 audio 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) -> AudioContent
pub fn build(self) -> AudioContent
Build audio content
Trait Implementations§
Source§impl Clone for AudioContentBuilder
impl Clone for AudioContentBuilder
Source§fn clone(&self) -> AudioContentBuilder
fn clone(&self) -> AudioContentBuilder
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 AudioContentBuilder
impl RefUnwindSafe for AudioContentBuilder
impl Send for AudioContentBuilder
impl Sync for AudioContentBuilder
impl Unpin for AudioContentBuilder
impl UnwindSafe for AudioContentBuilder
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