1 2 3 4 5 6 7 8 9 10 11 12 13 14
/// Description of the type of a [Topic](../struct.Topic.html) #[derive(Clone, PartialEq, Eq, Debug)] pub struct TypeDesc { my_name: String, // this is a rather minimal implementation } // placeholders impl TypeDesc { pub fn new(my_name: &str) -> TypeDesc { TypeDesc { my_name: my_name.to_string() } } pub fn name(&self) -> &str { &self.my_name } }