Struct bigml::Client
[−]
[src]
pub struct Client { /* fields omitted */ }
A client connection to BigML.
Methods
impl Client
[src]
fn new<S1, S2>(username: S1, api_key: S2) -> Result<Client> where
S1: Into<String>,
S2: Into<String>,
S1: Into<String>,
S2: Into<String>,
Create a new Client
.
fn create<Args>(&self, args: &Args) -> Result<Args::Resource> where
Args: Args,
Args: Args,
Create a new resource.
fn create_and_wait<Args>(&self, args: &Args) -> Result<Args::Resource> where
Args: Args,
Args: Args,
Create a new resource, and wait until it is ready.
fn create_source_from_path<P>(&self, path: P) -> Result<Source> where
P: AsRef<Path>,
P: AsRef<Path>,
Create a BigML data source using data from the specified path. We stream the data over the network without trying to load it all into memory.
fn fetch<R: Resource>(&self, resource: &Id<R>) -> Result<R>
Fetch an existing resource.
fn wait<R: Resource>(&self, resource: &Id<R>) -> Result<R>
Poll an existing resource, returning it once it's ready.
fn download<R: Resource>(&self, resource: &Id<R>) -> Result<Response>
Download a resource as a CSV file. This only makes sense for certain kinds of resources.
fn delete<R: Resource>(&self, resource: &Id<R>) -> Result<()>
Delete the specified resource.