pub struct EventFormat {
pub filters_by_party: HashMap<String, Filters>,
pub filters_for_any_party: Option<Box<Filters>>,
pub verbose: bool,
}
Expand description
EventFormat : A format for events which defines both which events should be included and what data should be computed and included for them. Note that some of the filtering behavior depends on the TransactionShape
, which is expected to be specified alongside usages of EventFormat
.
Fields§
§filters_by_party: HashMap<String, Filters>
§filters_for_any_party: Option<Box<Filters>>
§verbose: bool
If enabled, values served over the API will contain more information than strictly necessary to interpret the data. In particular, setting the verbose flag to true triggers the ledger to include labels for record fields. Optional
Implementations§
Source§impl EventFormat
impl EventFormat
Sourcepub fn new(
filters_by_party: HashMap<String, Filters>,
verbose: bool,
) -> EventFormat
pub fn new( filters_by_party: HashMap<String, Filters>, verbose: bool, ) -> EventFormat
A format for events which defines both which events should be included and what data should be computed and included for them. Note that some of the filtering behavior depends on the TransactionShape
, which is expected to be specified alongside usages of EventFormat
.
Trait Implementations§
Source§impl Clone for EventFormat
impl Clone for EventFormat
Source§fn clone(&self) -> EventFormat
fn clone(&self) -> EventFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more