pub struct UpdateProviderBuilder { /* private fields */ }Expand description
Builder for updating a provider
Implementations§
Source§impl UpdateProviderBuilder
impl UpdateProviderBuilder
Sourcepub fn with_new_name(self, new_name: impl Into<Option<String>>) -> Self
pub fn with_new_name(self, new_name: impl Into<Option<String>>) -> Self
New name for the provider.
Sourcepub fn with_owner(self, owner: impl Into<Option<String>>) -> Self
pub fn with_owner(self, owner: impl Into<Option<String>>) -> Self
Username of the provider owner.
Sourcepub fn with_comment(self, comment: impl Into<Option<String>>) -> Self
pub fn with_comment(self, comment: impl Into<Option<String>>) -> Self
Description about the provider.
Sourcepub fn with_recipient_profile_str(
self,
recipient_profile_str: impl Into<Option<String>>,
) -> Self
pub fn with_recipient_profile_str( self, recipient_profile_str: impl Into<Option<String>>, ) -> Self
The recipient profile (credential file contents) used to connect to the sharing server.
Sourcepub fn with_properties<I, K, V>(self, properties: I) -> Self
pub fn with_properties<I, K, V>(self, properties: I) -> Self
Provider properties as map of string key-value pairs.
When provided in update request, the specified properties will override the existing properties. To add and remove properties, one would need to perform a read-modify-write.
Trait Implementations§
Source§impl IntoFuture for UpdateProviderBuilder
impl IntoFuture for UpdateProviderBuilder
Source§type IntoFuture = Pin<Box<dyn Future<Output = <UpdateProviderBuilder as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <UpdateProviderBuilder as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for UpdateProviderBuilder
impl !UnwindSafe for UpdateProviderBuilder
impl Freeze for UpdateProviderBuilder
impl Send for UpdateProviderBuilder
impl Sync for UpdateProviderBuilder
impl Unpin for UpdateProviderBuilder
impl UnsafeUnpin for UpdateProviderBuilder
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