pub struct CKANFileCreateBuilder<'f1, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with call().
Implementations§
Source§impl<'f1, S: State> CKANFileCreateBuilder<'f1, S>
impl<'f1, S: State> CKANFileCreateBuilder<'f1, S>
Sourcepub async fn call(self) -> Result<Value, CKANError>where
S: IsComplete,
pub async fn call(self) -> Result<Value, CKANError>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn name(self, value: String) -> CKANFileCreateBuilder<'f1, SetName<S>>where
S::Name: IsUnset,
pub fn name(self, value: String) -> CKANFileCreateBuilder<'f1, SetName<S>>where
S::Name: IsUnset,
Sourcepub fn maybe_name(
self,
value: Option<String>,
) -> CKANFileCreateBuilder<'f1, SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<String>,
) -> CKANFileCreateBuilder<'f1, SetName<S>>where
S::Name: IsUnset,
Sourcepub fn storage(self, value: String) -> CKANFileCreateBuilder<'f1, SetStorage<S>>where
S::Storage: IsUnset,
pub fn storage(self, value: String) -> CKANFileCreateBuilder<'f1, SetStorage<S>>where
S::Storage: IsUnset,
Sourcepub fn maybe_storage(
self,
value: Option<String>,
) -> CKANFileCreateBuilder<'f1, SetStorage<S>>where
S::Storage: IsUnset,
pub fn maybe_storage(
self,
value: Option<String>,
) -> CKANFileCreateBuilder<'f1, SetStorage<S>>where
S::Storage: IsUnset,
Sourcepub fn upload(self, value: PathBuf) -> CKANFileCreateBuilder<'f1, SetUpload<S>>where
S::Upload: IsUnset,
pub fn upload(self, value: PathBuf) -> CKANFileCreateBuilder<'f1, SetUpload<S>>where
S::Upload: IsUnset,
Sourcepub fn maybe_upload(
self,
value: Option<PathBuf>,
) -> CKANFileCreateBuilder<'f1, SetUpload<S>>where
S::Upload: IsUnset,
pub fn maybe_upload(
self,
value: Option<PathBuf>,
) -> CKANFileCreateBuilder<'f1, SetUpload<S>>where
S::Upload: IsUnset,
Auto Trait Implementations§
impl<'f1, S> Freeze for CKANFileCreateBuilder<'f1, S>
impl<'f1, S> RefUnwindSafe for CKANFileCreateBuilder<'f1, S>
impl<'f1, S> Send for CKANFileCreateBuilder<'f1, S>
impl<'f1, S> Sync for CKANFileCreateBuilder<'f1, S>
impl<'f1, S> Unpin for CKANFileCreateBuilder<'f1, S>
impl<'f1, S> UnsafeUnpin for CKANFileCreateBuilder<'f1, S>
impl<'f1, S> UnwindSafe for CKANFileCreateBuilder<'f1, 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