pub struct FileUploadBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> FileUploadBuilder<S>
impl<S: State> FileUploadBuilder<S>
Sourcepub fn build(self) -> FileUploadwhere
S: IsComplete,
pub fn build(self) -> FileUploadwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn file_name(self, value: String) -> FileUploadBuilder<SetFileName<S>>where
S::FileName: IsUnset,
pub fn file_name(self, value: String) -> FileUploadBuilder<SetFileName<S>>where
S::FileName: IsUnset,
Required.
The name of the file. This is what the file will be called in the remote.it system.
Sourcepub fn file_path(
self,
value: impl Into<PathBuf>,
) -> FileUploadBuilder<SetFilePath<S>>where
S::FilePath: IsUnset,
pub fn file_path(
self,
value: impl Into<PathBuf>,
) -> FileUploadBuilder<SetFilePath<S>>where
S::FilePath: IsUnset,
Required.
The path to the file on the local filesystem.
Sourcepub fn executable(self, value: bool) -> FileUploadBuilder<SetExecutable<S>>where
S::Executable: IsUnset,
pub fn executable(self, value: bool) -> FileUploadBuilder<SetExecutable<S>>where
S::Executable: IsUnset,
Required.
Whether the file is an executable script or an asset.
Sourcepub fn short_desc(self, value: String) -> FileUploadBuilder<SetShortDesc<S>>where
S::ShortDesc: IsUnset,
pub fn short_desc(self, value: String) -> FileUploadBuilder<SetShortDesc<S>>where
S::ShortDesc: IsUnset,
Sourcepub fn maybe_short_desc(
self,
value: Option<String>,
) -> FileUploadBuilder<SetShortDesc<S>>where
S::ShortDesc: IsUnset,
pub fn maybe_short_desc(
self,
value: Option<String>,
) -> FileUploadBuilder<SetShortDesc<S>>where
S::ShortDesc: IsUnset,
Sourcepub fn long_desc(self, value: String) -> FileUploadBuilder<SetLongDesc<S>>where
S::LongDesc: IsUnset,
pub fn long_desc(self, value: String) -> FileUploadBuilder<SetLongDesc<S>>where
S::LongDesc: IsUnset,
Sourcepub fn maybe_long_desc(
self,
value: Option<String>,
) -> FileUploadBuilder<SetLongDesc<S>>where
S::LongDesc: IsUnset,
pub fn maybe_long_desc(
self,
value: Option<String>,
) -> FileUploadBuilder<SetLongDesc<S>>where
S::LongDesc: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for FileUploadBuilder<S>
impl<S> RefUnwindSafe for FileUploadBuilder<S>
impl<S> Send for FileUploadBuilder<S>
impl<S> Sync for FileUploadBuilder<S>
impl<S> Unpin for FileUploadBuilder<S>
impl<S> UnwindSafe for FileUploadBuilder<S>
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