Skip to main content

XccyTemplateArg

Trait XccyTemplateArg 

pub trait XccyTemplateArg<'a> {
    // Required method
    fn resolve(self) -> Result<Cow<'a, XccySwapTemplate>, RungBuildError>;
}
Expand description

A cross-currency template as cross_currency_rungs takes it: a registry code, or a template value, registered or customised.

Required Methods§

fn resolve(self) -> Result<Cow<'a, XccySwapTemplate>, RungBuildError>

The template the code names, or the value itself.

§Errors

RungBuildError::UnknownTemplate for a code the registry lacks, and RungBuildError::NotCrossCurrency for one naming another family.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl<'a> XccyTemplateArg<'a> for &'a String

§

impl<'a> XccyTemplateArg<'a> for &'a str

Implementors§

§

impl<'a> XccyTemplateArg<'a> for &'a XccySwapTemplate