Skip to main content

Translator

Trait Translator 

Source
pub trait Translator:
    Send
    + Sync
    + 'static {
    type External: Send + 'static;
    type Internal: Send + 'static;

    // Required method
    fn translate(&self, ext: Self::External) -> Option<Self::Internal>;
}
Expand description

Translate a value from one bounded context’s vocabulary to another’s. Return None to drop the value.

Required Associated Types§

Source

type External: Send + 'static

Source

type Internal: Send + 'static

Required Methods§

Source

fn translate(&self, ext: Self::External) -> Option<Self::Internal>

Implementors§