Struct algorithmia::algo::AlgoResponse [] [src]

pub struct AlgoResponse {
    pub metadata: AlgoMetadata,
    pub result: AlgoOutput,
    // some fields omitted
}

Successful API response that wraps the AlgoOutput and its Metadata

Fields

Any metadata associated with the API response

The algorithm output decoded into an AlgoOutput enum

Methods

impl AlgoResponse
[src]

Return algorithm output as a string (if text or a valid JSON string)

Read algorithm output as JsonValue (if JSON of text)

If the algorithm output is Binary, returns the associated byte slice

If the algorithm output is JSON, decode it into a particular type

Trait Implementations

impl FromStr for AlgoResponse
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Display for AlgoResponse
[src]

Formats the value using the given formatter. Read more

impl Read for AlgoResponse
[src]

Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more

🔬 This is a nightly-only experimental API. (read_initializer)

Determines if this Reader can work with buffers of uninitialized memory. Read more

Read all bytes until EOF in this source, placing them into buf. Read more

Read all bytes until EOF in this source, placing them into buf. Read more

Read the exact number of bytes required to fill buf. Read more

Creates a "by reference" adaptor for this instance of Read. Read more

Transforms this Read instance to an Iterator over its bytes. Read more

🔬 This is a nightly-only experimental API. (io)

the semantics of a partial read/write of where errors happen is currently unclear and may change

Transforms this Read instance to an Iterator over chars. Read more

Creates an adaptor which will chain this stream with another. Read more

Creates an adaptor which will read at most limit bytes from it. Read more