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().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>

source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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
source

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.
source

pub fn list(&self) -> MatterListCall<'a, S>

Create a builder to help you perform the following task:

Lists matters the requestor has access to.

source

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.
source

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.
source

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.
source

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§

source§

impl<'a, S> MethodsBuilder for MatterMethods<'a, S>

Auto Trait Implementations§

§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more