Struct bigml::Client [−][src]
pub struct Client { /* fields omitted */ }
A client connection to BigML.
Methods
impl Client
[src]
impl Client
pub fn new<S1, S2>(username: S1, api_key: S2) -> Result<Client> where
S1: Into<String>,
S2: Into<String>,
[src]
pub fn new<S1, S2>(username: S1, api_key: S2) -> Result<Client> where
S1: Into<String>,
S2: Into<String>,
Create a new Client
.
pub fn create<Args>(&self, args: &Args) -> Result<Args::Resource> where
Args: Args,
[src]
pub fn create<Args>(&self, args: &Args) -> Result<Args::Resource> where
Args: Args,
Create a new resource.
pub fn create_and_wait<Args>(&self, args: &Args) -> Result<Args::Resource> where
Args: Args,
[src]
pub fn create_and_wait<Args>(&self, args: &Args) -> Result<Args::Resource> where
Args: Args,
Create a new resource, and wait until it is ready.
pub fn create_source_from_path<P>(&self, path: P) -> Result<Source> where
P: AsRef<Path>,
[src]
pub fn create_source_from_path<P>(&self, path: P) -> Result<Source> where
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.
pub fn create_source_from_path_and_wait<P>(&self, path: P) -> Result<Source> where
P: AsRef<Path>,
[src]
pub fn create_source_from_path_and_wait<P>(&self, path: P) -> Result<Source> where
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.
pub fn update<R: Resource + Updatable>(
&self,
resource: &Id<R>,
update: &<R as Updatable>::Update
) -> Result<()>
[src]
pub fn update<R: Resource + Updatable>(
&self,
resource: &Id<R>,
update: &<R as Updatable>::Update
) -> Result<()>
Update the specified resource
using update
. We do not return the
updated resource because of peculiarities with BigML's API, but you
can always use Client::fetch
if you need the updated version.
pub fn fetch<R: Resource>(&self, resource: &Id<R>) -> Result<R>
[src]
pub fn fetch<R: Resource>(&self, resource: &Id<R>) -> Result<R>
Fetch an existing resource.
pub fn wait<R: Resource>(&self, resource: &Id<R>) -> Result<R>
[src]
pub fn wait<R: Resource>(&self, resource: &Id<R>) -> Result<R>
Poll an existing resource, returning it once it's ready.
pub fn wait_opt<'a, R: Resource>(
&self,
resource: &Id<R>,
wait_options: &WaitOptions,
progress_options: &mut ProgressOptions<'a, R>
) -> Result<R>
[src]
pub fn wait_opt<'a, R: Resource>(
&self,
resource: &Id<R>,
wait_options: &WaitOptions,
progress_options: &mut ProgressOptions<'a, R>
) -> Result<R>
Poll an existing resource, returning it once it's ready, and honoring wait and progress options.
pub fn download<R: Resource>(&self, resource: &Id<R>) -> Result<Response>
[src]
pub 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.
pub fn download_opt<'a, R: Resource>(
&self,
resource: &Id<R>,
options: &WaitOptions
) -> Result<Response>
[src]
pub fn download_opt<'a, R: Resource>(
&self,
resource: &Id<R>,
options: &WaitOptions
) -> Result<Response>
Download a resource as a CSV file. This only makes sense for certain kinds of resources.
pub fn delete<R: Resource>(&self, resource: &Id<R>) -> Result<()>
[src]
pub fn delete<R: Resource>(&self, resource: &Id<R>) -> Result<()>
Delete the specified resource.