Struct google_prediction1d6::HostedmodelMethods [] [src]

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

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

Example

Instantiate a resource builder

extern crate hyper;
extern crate yup_oauth2 as oauth2;
extern crate google_prediction1d6 as prediction1d6;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use prediction1d6::Prediction;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::new(),
                              <MemoryStorage as Default>::default(), None);
let mut hub = Prediction::new(hyper::Client::new(), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `predict(...)`
// to build up your call.
let rb = hub.hostedmodels();

Methods

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

Create a builder to help you perform the following task:

Submit input and request an output against a hosted model.

Arguments

  • request - No description provided.
  • project - The project associated with the model.
  • hostedModelName - The name of a hosted model.

Trait Implementations

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