Trait bigml::resource::Resource
[−]
[src]
pub trait Resource: Debug + Deserialize { fn id_prefix() -> &'static str; fn create_path() -> &'static str; fn id(&self) -> &Id<Self>; fn status(&self) -> &Status; }
A shared interface to all BigML resource types.
Required Methods
fn id_prefix() -> &'static str
The prefix used for all IDs of this type.
fn create_path() -> &'static str
The URL path used to create a new resource of this type.
fn id(&self) -> &Id<Self>
The ID of this resource.
fn status(&self) -> &Status
The status code for this resource.
TODO: Does this need to go in a separate trait in order to maintain trait object support?
Implementors
impl Resource for BatchPrediction
impl Resource for Ensemble
impl<R: Result> Resource for Evaluation<R>
impl Resource for Execution
impl Resource for Script
impl Resource for Source