pub struct WorkspaceUpdateBuilder { /* private fields */ }Expand description
Builder for WorkspaceUpdateRequest.
Implementations§
Source§impl WorkspaceUpdateBuilder
impl WorkspaceUpdateBuilder
Sourcepub fn workspace_id<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn workspace_id<VALUE: Into<String>>(self, value: VALUE) -> Self
Workspace identifier (not serialized)
Sourcepub fn credentials<VALUE: Into<Credentials>>(self, value: VALUE) -> Self
pub fn credentials<VALUE: Into<Credentials>>(self, value: VALUE) -> Self
Credentials for authentication (not serialized)
Sourcepub fn build(
self,
) -> Result<WorkspaceUpdateRequest, WorkspaceUpdateBuilderError>
pub fn build( self, ) -> Result<WorkspaceUpdateRequest, WorkspaceUpdateBuilderError>
Source§impl WorkspaceUpdateBuilder
impl WorkspaceUpdateBuilder
Sourcepub async fn create(self) -> ApiResponseOrError<Workspace>
pub async fn create(self) -> ApiResponseOrError<Workspace>
Creates a new workspace update request and returns the response.
This is a convenience method that builds the request from the builder and sends it to the Workspaces API.
§Example
let credentials = Credentials::from_env();
let updated_workspace = Workspace::update_builder("workspace_123456789")
.credentials(credentials)
.name("Updated Workspace Name")
.create()
.await?;Trait Implementations§
Source§impl Clone for WorkspaceUpdateBuilder
impl Clone for WorkspaceUpdateBuilder
Source§fn clone(&self) -> WorkspaceUpdateBuilder
fn clone(&self) -> WorkspaceUpdateBuilder
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 moreSource§impl Debug for WorkspaceUpdateBuilder
impl Debug for WorkspaceUpdateBuilder
Source§impl Default for WorkspaceUpdateBuilder
impl Default for WorkspaceUpdateBuilder
Source§impl PartialEq for WorkspaceUpdateBuilder
impl PartialEq for WorkspaceUpdateBuilder
impl StructuralPartialEq for WorkspaceUpdateBuilder
Auto Trait Implementations§
impl Freeze for WorkspaceUpdateBuilder
impl RefUnwindSafe for WorkspaceUpdateBuilder
impl Send for WorkspaceUpdateBuilder
impl Sync for WorkspaceUpdateBuilder
impl Unpin for WorkspaceUpdateBuilder
impl UnwindSafe for WorkspaceUpdateBuilder
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