Enum algorithmia::algo::AlgoOutput [] [src]

pub enum AlgoOutput {
    Text(String),
    Json(JsonValue),
    Binary(Vec<u8>),
}

Types that can store the output of an algorithm

Variants

Representation of result when metadata.content_type is 'text'

Representation of result when metadata.content_type is 'json'

Representation of result when metadata.content_type is 'binary'

Trait Implementations

impl From<()> for AlgoOutput
[src]

Performs the conversion.

impl<'a> From<&'a str> for AlgoOutput
[src]

Performs the conversion.

impl From<String> for AlgoOutput
[src]

Performs the conversion.

impl<'a> From<&'a [u8]> for AlgoOutput
[src]

Performs the conversion.

impl From<Vec<u8>> for AlgoOutput
[src]

Performs the conversion.

impl From<JsonValue> for AlgoOutput
[src]

Performs the conversion.

impl<'a, S: Serialize> From<&'a S> for AlgoOutput
[src]

Performs the conversion.

impl<S: Serialize> From<Box<S>> for AlgoOutput
[src]

Performs the conversion.