Struct google_vault1::api::MatterMethods
source · pub struct MatterMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on matter resources.
It is not used directly, but through the Vault
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_vault1 as vault1;
use std::default::Default;
use vault1::{Vault, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = Vault::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().unwrap().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `add_permissions(...)`, `close(...)`, `count(...)`, `create(...)`, `delete(...)`, `exports_create(...)`, `exports_delete(...)`, `exports_get(...)`, `exports_list(...)`, `get(...)`, `holds_accounts_create(...)`, `holds_accounts_delete(...)`, `holds_accounts_list(...)`, `holds_add_held_accounts(...)`, `holds_create(...)`, `holds_delete(...)`, `holds_get(...)`, `holds_list(...)`, `holds_remove_held_accounts(...)`, `holds_update(...)`, `list(...)`, `remove_permissions(...)`, `reopen(...)`, `saved_queries_create(...)`, `saved_queries_delete(...)`, `saved_queries_get(...)`, `saved_queries_list(...)`, `undelete(...)` and `update(...)`
// to build up your call.
let rb = hub.matters();
Implementations§
source§impl<'a, S> MatterMethods<'a, S>
impl<'a, S> MatterMethods<'a, S>
sourcepub fn exports_create(
&self,
request: Export,
matter_id: &str,
) -> MatterExportCreateCall<'a, S>
pub fn exports_create( &self, request: Export, matter_id: &str, ) -> MatterExportCreateCall<'a, S>
Create a builder to help you perform the following task:
Creates an export.
§Arguments
request
- No description provided.matterId
- The matter ID.
sourcepub fn exports_delete(
&self,
matter_id: &str,
export_id: &str,
) -> MatterExportDeleteCall<'a, S>
pub fn exports_delete( &self, matter_id: &str, export_id: &str, ) -> MatterExportDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes an export.
§Arguments
matterId
- The matter ID.exportId
- The export ID.
sourcepub fn exports_get(
&self,
matter_id: &str,
export_id: &str,
) -> MatterExportGetCall<'a, S>
pub fn exports_get( &self, matter_id: &str, export_id: &str, ) -> MatterExportGetCall<'a, S>
Create a builder to help you perform the following task:
Gets an export.
§Arguments
matterId
- The matter ID.exportId
- The export ID.
sourcepub fn exports_list(&self, matter_id: &str) -> MatterExportListCall<'a, S>
pub fn exports_list(&self, matter_id: &str) -> MatterExportListCall<'a, S>
Create a builder to help you perform the following task:
Lists details about the exports in the specified matter.
§Arguments
matterId
- The matter ID.
sourcepub fn holds_accounts_create(
&self,
request: HeldAccount,
matter_id: &str,
hold_id: &str,
) -> MatterHoldAccountCreateCall<'a, S>
pub fn holds_accounts_create( &self, request: HeldAccount, matter_id: &str, hold_id: &str, ) -> MatterHoldAccountCreateCall<'a, S>
Create a builder to help you perform the following task:
Adds an account to a hold. Accounts can be added only to a hold that does not have an organizational unit set. If you try to add an account to an organizational unit-based hold, an error is returned.
§Arguments
request
- No description provided.matterId
- The matter ID.holdId
- The hold ID.
sourcepub fn holds_accounts_delete(
&self,
matter_id: &str,
hold_id: &str,
account_id: &str,
) -> MatterHoldAccountDeleteCall<'a, S>
pub fn holds_accounts_delete( &self, matter_id: &str, hold_id: &str, account_id: &str, ) -> MatterHoldAccountDeleteCall<'a, S>
Create a builder to help you perform the following task:
Removes an account from a hold.
§Arguments
matterId
- The matter ID.holdId
- The hold ID.accountId
- The ID of the account to remove from the hold.
sourcepub fn holds_accounts_list(
&self,
matter_id: &str,
hold_id: &str,
) -> MatterHoldAccountListCall<'a, S>
pub fn holds_accounts_list( &self, matter_id: &str, hold_id: &str, ) -> MatterHoldAccountListCall<'a, S>
Create a builder to help you perform the following task:
Lists the accounts covered by a hold. This can list only individually-specified accounts covered by the hold. If the hold covers an organizational unit, use the Admin SDK. to list the members of the organizational unit on hold.
§Arguments
matterId
- The matter ID.holdId
- The hold ID.
sourcepub fn holds_add_held_accounts(
&self,
request: AddHeldAccountsRequest,
matter_id: &str,
hold_id: &str,
) -> MatterHoldAddHeldAccountCall<'a, S>
pub fn holds_add_held_accounts( &self, request: AddHeldAccountsRequest, matter_id: &str, hold_id: &str, ) -> MatterHoldAddHeldAccountCall<'a, S>
Create a builder to help you perform the following task:
Adds accounts to a hold. Returns a list of accounts that have been successfully added. Accounts can be added only to an existing account-based hold.
§Arguments
request
- No description provided.matterId
- The matter ID.holdId
- The hold ID.
sourcepub fn holds_create(
&self,
request: Hold,
matter_id: &str,
) -> MatterHoldCreateCall<'a, S>
pub fn holds_create( &self, request: Hold, matter_id: &str, ) -> MatterHoldCreateCall<'a, S>
Create a builder to help you perform the following task:
Creates a hold in the specified matter.
§Arguments
request
- No description provided.matterId
- The matter ID.
sourcepub fn holds_delete(
&self,
matter_id: &str,
hold_id: &str,
) -> MatterHoldDeleteCall<'a, S>
pub fn holds_delete( &self, matter_id: &str, hold_id: &str, ) -> MatterHoldDeleteCall<'a, S>
Create a builder to help you perform the following task:
Removes the specified hold and releases the accounts or organizational unit covered by the hold. If the data is not preserved by another hold or retention rule, it might be purged.
§Arguments
matterId
- The matter ID.holdId
- The hold ID.
sourcepub fn holds_get(
&self,
matter_id: &str,
hold_id: &str,
) -> MatterHoldGetCall<'a, S>
pub fn holds_get( &self, matter_id: &str, hold_id: &str, ) -> MatterHoldGetCall<'a, S>
Create a builder to help you perform the following task:
Gets the specified hold.
§Arguments
matterId
- The matter ID.holdId
- The hold ID.
sourcepub fn holds_list(&self, matter_id: &str) -> MatterHoldListCall<'a, S>
pub fn holds_list(&self, matter_id: &str) -> MatterHoldListCall<'a, S>
Create a builder to help you perform the following task:
Lists the holds in a matter.
§Arguments
matterId
- The matter ID.
sourcepub fn holds_remove_held_accounts(
&self,
request: RemoveHeldAccountsRequest,
matter_id: &str,
hold_id: &str,
) -> MatterHoldRemoveHeldAccountCall<'a, S>
pub fn holds_remove_held_accounts( &self, request: RemoveHeldAccountsRequest, matter_id: &str, hold_id: &str, ) -> MatterHoldRemoveHeldAccountCall<'a, S>
Create a builder to help you perform the following task:
Removes the specified accounts from a hold. Returns a list of statuses in the same order as the request.
§Arguments
request
- No description provided.matterId
- The matter ID.holdId
- The hold ID.
sourcepub fn holds_update(
&self,
request: Hold,
matter_id: &str,
hold_id: &str,
) -> MatterHoldUpdateCall<'a, S>
pub fn holds_update( &self, request: Hold, matter_id: &str, hold_id: &str, ) -> MatterHoldUpdateCall<'a, S>
Create a builder to help you perform the following task:
Updates the scope (organizational unit or accounts) and query parameters of a hold. You cannot add accounts to a hold that covers an organizational unit, nor can you add organizational units to a hold that covers individual accounts. If you try, the unsupported values are ignored.
§Arguments
request
- No description provided.matterId
- The matter ID.holdId
- The ID of the hold.
sourcepub fn saved_queries_create(
&self,
request: SavedQuery,
matter_id: &str,
) -> MatterSavedQueryCreateCall<'a, S>
pub fn saved_queries_create( &self, request: SavedQuery, matter_id: &str, ) -> MatterSavedQueryCreateCall<'a, S>
Create a builder to help you perform the following task:
Creates a saved query.
§Arguments
request
- No description provided.matterId
- The ID of the matter to create the saved query in.
sourcepub fn saved_queries_delete(
&self,
matter_id: &str,
saved_query_id: &str,
) -> MatterSavedQueryDeleteCall<'a, S>
pub fn saved_queries_delete( &self, matter_id: &str, saved_query_id: &str, ) -> MatterSavedQueryDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes the specified saved query.
§Arguments
matterId
- The ID of the matter to delete the saved query from.savedQueryId
- ID of the saved query to delete.
sourcepub fn saved_queries_get(
&self,
matter_id: &str,
saved_query_id: &str,
) -> MatterSavedQueryGetCall<'a, S>
pub fn saved_queries_get( &self, matter_id: &str, saved_query_id: &str, ) -> MatterSavedQueryGetCall<'a, S>
Create a builder to help you perform the following task:
Retrieves the specified saved query.
§Arguments
matterId
- The ID of the matter to get the saved query from.savedQueryId
- ID of the saved query to retrieve.
sourcepub fn saved_queries_list(
&self,
matter_id: &str,
) -> MatterSavedQueryListCall<'a, S>
pub fn saved_queries_list( &self, matter_id: &str, ) -> MatterSavedQueryListCall<'a, S>
Create a builder to help you perform the following task:
Lists the saved queries in a matter.
§Arguments
matterId
- The ID of the matter to get the saved queries for.
sourcepub fn add_permissions(
&self,
request: AddMatterPermissionsRequest,
matter_id: &str,
) -> MatterAddPermissionCall<'a, S>
pub fn add_permissions( &self, request: AddMatterPermissionsRequest, matter_id: &str, ) -> MatterAddPermissionCall<'a, S>
Create a builder to help you perform the following task:
Adds an account as a matter collaborator.
§Arguments
request
- No description provided.matterId
- The matter ID.
sourcepub fn close(
&self,
request: CloseMatterRequest,
matter_id: &str,
) -> MatterCloseCall<'a, S>
pub fn close( &self, request: CloseMatterRequest, matter_id: &str, ) -> MatterCloseCall<'a, S>
Create a builder to help you perform the following task:
Closes the specified matter. Returns the matter with updated state.
§Arguments
request
- No description provided.matterId
- The matter ID.
sourcepub fn count(
&self,
request: CountArtifactsRequest,
matter_id: &str,
) -> MatterCountCall<'a, S>
pub fn count( &self, request: CountArtifactsRequest, matter_id: &str, ) -> MatterCountCall<'a, S>
Create a builder to help you perform the following task:
Counts the accounts processed by the specified query.
§Arguments
request
- No description provided.matterId
- The matter ID.
sourcepub fn create(&self, request: Matter) -> MatterCreateCall<'a, S>
pub fn create(&self, request: Matter) -> MatterCreateCall<'a, S>
Create a builder to help you perform the following task:
Creates a matter with the given name and description. The initial state is open, and the owner is the method caller. Returns the created matter with default view.
§Arguments
request
- No description provided.
sourcepub fn delete(&self, matter_id: &str) -> MatterDeleteCall<'a, S>
pub fn delete(&self, matter_id: &str) -> MatterDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes the specified matter. Returns the matter with updated state.
§Arguments
matterId
- The matter ID
sourcepub fn get(&self, matter_id: &str) -> MatterGetCall<'a, S>
pub fn get(&self, matter_id: &str) -> MatterGetCall<'a, S>
Create a builder to help you perform the following task:
Gets the specified matter.
§Arguments
matterId
- The matter ID.
sourcepub fn list(&self) -> MatterListCall<'a, S>
pub fn list(&self) -> MatterListCall<'a, S>
Create a builder to help you perform the following task:
Lists matters the requestor has access to.
sourcepub fn remove_permissions(
&self,
request: RemoveMatterPermissionsRequest,
matter_id: &str,
) -> MatterRemovePermissionCall<'a, S>
pub fn remove_permissions( &self, request: RemoveMatterPermissionsRequest, matter_id: &str, ) -> MatterRemovePermissionCall<'a, S>
Create a builder to help you perform the following task:
Removes an account as a matter collaborator.
§Arguments
request
- No description provided.matterId
- The matter ID.
sourcepub fn reopen(
&self,
request: ReopenMatterRequest,
matter_id: &str,
) -> MatterReopenCall<'a, S>
pub fn reopen( &self, request: ReopenMatterRequest, matter_id: &str, ) -> MatterReopenCall<'a, S>
Create a builder to help you perform the following task:
Reopens the specified matter. Returns the matter with updated state.
§Arguments
request
- No description provided.matterId
- The matter ID.
sourcepub fn undelete(
&self,
request: UndeleteMatterRequest,
matter_id: &str,
) -> MatterUndeleteCall<'a, S>
pub fn undelete( &self, request: UndeleteMatterRequest, matter_id: &str, ) -> MatterUndeleteCall<'a, S>
Create a builder to help you perform the following task:
Undeletes the specified matter. Returns the matter with updated state.
§Arguments
request
- No description provided.matterId
- The matter ID.
sourcepub fn update(
&self,
request: Matter,
matter_id: &str,
) -> MatterUpdateCall<'a, S>
pub fn update( &self, request: Matter, matter_id: &str, ) -> MatterUpdateCall<'a, S>
Create a builder to help you perform the following task:
Updates the specified matter. This updates only the name and description of the matter, identified by matter ID. Changes to any other fields are ignored. Returns the default view of the matter.
§Arguments
request
- No description provided.matterId
- The matter ID.
Trait Implementations§
impl<'a, S> MethodsBuilder for MatterMethods<'a, S>
Auto Trait Implementations§
impl<'a, S> Freeze for MatterMethods<'a, S>
impl<'a, S> !RefUnwindSafe for MatterMethods<'a, S>
impl<'a, S> Send for MatterMethods<'a, S>where
S: Sync,
impl<'a, S> Sync for MatterMethods<'a, S>where
S: Sync,
impl<'a, S> Unpin for MatterMethods<'a, S>
impl<'a, S> !UnwindSafe for MatterMethods<'a, 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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more