pub struct FileBuilder(/* private fields */);Expand description
Builder for File.
Implementations§
Source§impl FileBuilder
impl FileBuilder
pub fn name(self, value: impl Into<Option<String>>) -> Self
pub fn display_name(self, value: impl Into<Option<String>>) -> Self
pub fn mime_type(self, value: impl Into<Option<String>>) -> Self
pub fn size_bytes(self, value: impl Into<Option<FileSize>>) -> Self
pub fn create_time(self, value: impl Into<Option<String>>) -> Self
pub fn update_time(self, value: impl Into<Option<String>>) -> Self
pub fn expiration_time(self, value: impl Into<Option<String>>) -> Self
pub fn sha256_hash(self, value: impl Into<Option<String>>) -> Self
pub fn uri(self, value: impl Into<Option<String>>) -> Self
pub fn download_uri(self, value: impl Into<Option<String>>) -> Self
pub fn state(self, value: impl Into<Option<FileState>>) -> Self
pub fn source(self, value: impl Into<Option<FileSource>>) -> Self
pub fn video_metadata(self, value: impl Into<Option<VideoFileMetadata>>) -> Self
pub fn error(self, value: impl Into<Option<Status>>) -> Self
pub fn rest(self, value: Rest) -> Self
Auto Trait Implementations§
impl Freeze for FileBuilder
impl RefUnwindSafe for FileBuilder
impl Send for FileBuilder
impl Sync for FileBuilder
impl Unpin for FileBuilder
impl UnsafeUnpin for FileBuilder
impl UnwindSafe for FileBuilder
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