pub struct AllocFileInfoBuilder { /* private fields */ }
Expand description
Builder for AllocFileInfo
.
Implementations§
Source§impl AllocFileInfoBuilder
impl AllocFileInfoBuilder
pub fn file_mode(&mut self, value: String) -> &mut Self
pub fn mod_time(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn content_type(&mut self, value: String) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn is_dir(&mut self, value: bool) -> &mut Self
pub fn size(&mut self, value: i64) -> &mut Self
Sourcepub fn build(&self) -> Result<AllocFileInfo, AllocFileInfoBuilderError>
pub fn build(&self) -> Result<AllocFileInfo, AllocFileInfoBuilderError>
Trait Implementations§
Source§impl Clone for AllocFileInfoBuilder
impl Clone for AllocFileInfoBuilder
Source§fn clone(&self) -> AllocFileInfoBuilder
fn clone(&self) -> AllocFileInfoBuilder
Returns a copy 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 AllocFileInfoBuilder
impl RefUnwindSafe for AllocFileInfoBuilder
impl Send for AllocFileInfoBuilder
impl Sync for AllocFileInfoBuilder
impl Unpin for AllocFileInfoBuilder
impl UnwindSafe for AllocFileInfoBuilder
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