Skip to main content

read_all

Function read_all 

pub fn read_all(
    text: &str,
    options: &ReadOptions<'_>,
) -> Result<Vec<Result<FpmlTrade, FpmlError>>, FpmlError>
Expand description

Reads every trade of an FpML 5 confirmation document, in document order, as the party options selects.

§Errors

The outer FpmlError where the document itself cannot be read: not well-formed, another namespace, or a selector matching no party or more than one. Each inner error is that trade’s refusal.