Struct google_digitalassetlinks1::AssetlinkMethods[][src]

pub struct AssetlinkMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

A builder providing access to all methods supported on assetlink resources. It is not used directly, but through the Digitalassetlinks hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_digitalassetlinks1 as digitalassetlinks1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use digitalassetlinks1::Digitalassetlinks;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = Digitalassetlinks::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `check(...)`
// to build up your call.
let rb = hub.assetlinks();

Methods

impl<'a, C, A> AssetlinkMethods<'a, C, A>
[src]

Create a builder to help you perform the following task:

Determines whether the specified (directional) relationship exists between the specified source and target assets.

The relation describes the intent of the link between the two assets as claimed by the source asset. An example for such relationships is the delegation of privileges or permissions.

This command is most often used by infrastructure systems to check preconditions for an action. For example, a client may want to know if it is OK to send a web URL to a particular mobile app instead. The client can check for the relevant asset link from the website to the mobile app to decide if the operation should be allowed.

A note about security: if you specify a secure asset as the source, such as an HTTPS website or an Android app, the API will ensure that any statements used to generate the response have been made in a secure way by the owner of that asset. Conversely, if the source asset is an insecure HTTP website (that is, the URL starts with http:// instead of https://), the API cannot verify its statements securely, and it is not possible to ensure that the website's statements have not been altered by a third party. For more information, see the Digital Asset Links technical design specification.

Trait Implementations

impl<'a, C, A> MethodsBuilder for AssetlinkMethods<'a, C, A>
[src]

Auto Trait Implementations

impl<'a, C, A> !Send for AssetlinkMethods<'a, C, A>

impl<'a, C, A> !Sync for AssetlinkMethods<'a, C, A>