Trait stitch::Message
[−]
[src]
pub trait Message { fn get_table_name(&self) -> String; fn get_keys(&self) -> Vec<String>; }
Trait that defines fields needed to send a record to stitch.
Example
ⓘThis example is not tested
struct User { id: u64, } impl Message for User { fn get_table_name(&self) -> String { String::from("users") } fn get_keys(&self) -> Vec<String> { vec![String::from("id")] } }