pub trait Transformer<T>: Send + Sync {
type Output: Serialize;
// Required methods
fn transform(&self, resource: T) -> Self::Output;
fn name(&self) -> &'static str;
}
Expand description
Trait for resource transformers (for API responses)