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

The prefix used for all IDs of this type.

The URL path used to create a new resource of this type.

The ID of this resource.

The status code for this resource.

TODO: Does this need to go in a separate trait in order to maintain trait object support?

Implementors