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
Text(String)
Representation of result when metadata.content_type
is 'text'
Json(JsonValue)
Representation of result when metadata.content_type
is 'json'
Binary(Vec<u8>)
Representation of result when metadata.content_type
is 'binary'
Trait Implementations
impl From<()> for AlgoOutput
[src]
impl<'a> From<&'a str> for AlgoOutput
[src]
impl From<String> for AlgoOutput
[src]
impl<'a> From<&'a [u8]> for AlgoOutput
[src]
impl From<Vec<u8>> for AlgoOutput
[src]
impl From<JsonValue> for AlgoOutput
[src]
impl<'a, S: Serialize> From<&'a S> for AlgoOutput
[src]
fn from(object: &'a S) -> Self
Performs the conversion.