(author: &Author)
| 12 | } |
| 13 | |
| 14 | pub fn author_proto(author: &Author) -> pb::Author { |
| 15 | pb::Author { |
| 16 | name: author.name.clone(), |
| 17 | email: author.email.clone(), |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | pub fn timestamp_proto(time: chrono::DateTime<chrono::Utc>) -> prost_types::Timestamp { |
| 22 | prost_types::Timestamp { |