pub struct WorkspaceArchiveBuilder { /* private fields */ }Expand description
Builder for WorkspaceArchiveRequest.
Implementations§
Source§impl WorkspaceArchiveBuilder
impl WorkspaceArchiveBuilder
Sourcepub fn workspace_id<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn workspace_id<VALUE: Into<String>>(self, value: VALUE) -> Self
Workspace identifier
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<WorkspaceArchiveRequest, WorkspaceArchiveBuilderError>
pub fn build( self, ) -> Result<WorkspaceArchiveRequest, WorkspaceArchiveBuilderError>
Source§impl WorkspaceArchiveBuilder
impl WorkspaceArchiveBuilder
Sourcepub async fn create(self) -> ApiResponseOrError<Workspace>
pub async fn create(self) -> ApiResponseOrError<Workspace>
Creates a new workspace archive 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 archived_workspace = Workspace::archive_builder("workspace_123456789")
.credentials(credentials)
.create()
.await?;Trait Implementations§
Source§impl Clone for WorkspaceArchiveBuilder
impl Clone for WorkspaceArchiveBuilder
Source§fn clone(&self) -> WorkspaceArchiveBuilder
fn clone(&self) -> WorkspaceArchiveBuilder
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 WorkspaceArchiveBuilder
impl Debug for WorkspaceArchiveBuilder
Source§impl Default for WorkspaceArchiveBuilder
impl Default for WorkspaceArchiveBuilder
Source§impl PartialEq for WorkspaceArchiveBuilder
impl PartialEq for WorkspaceArchiveBuilder
impl StructuralPartialEq for WorkspaceArchiveBuilder
Auto Trait Implementations§
impl Freeze for WorkspaceArchiveBuilder
impl RefUnwindSafe for WorkspaceArchiveBuilder
impl Send for WorkspaceArchiveBuilder
impl Sync for WorkspaceArchiveBuilder
impl Unpin for WorkspaceArchiveBuilder
impl UnwindSafe for WorkspaceArchiveBuilder
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