pub struct SourceInfoBuilder { /* private fields */ }
Expand description
Builder for SourceInfo
.
Implementations§
Source§impl SourceInfoBuilder
impl SourceInfoBuilder
pub fn source<VALUE: Into<Source>>(&mut self, value: VALUE) -> &mut Self
pub fn video_size<VALUE: Into<Option<u64>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn chunk_size<VALUE: Into<Option<u64>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn total_chunk_count<VALUE: Into<Option<u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn video_url<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn photo_cover_index<VALUE: Into<Option<u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn photo_images<VALUE: Into<Option<Vec<String>>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<SourceInfo, SourceInfoBuilderError>
pub fn build(&self) -> Result<SourceInfo, SourceInfoBuilderError>
Trait Implementations§
Source§impl Clone for SourceInfoBuilder
impl Clone for SourceInfoBuilder
Source§fn clone(&self) -> SourceInfoBuilder
fn clone(&self) -> SourceInfoBuilder
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 SourceInfoBuilder
impl RefUnwindSafe for SourceInfoBuilder
impl Send for SourceInfoBuilder
impl Sync for SourceInfoBuilder
impl Unpin for SourceInfoBuilder
impl UnwindSafe for SourceInfoBuilder
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