gcp_pubsub/presenters/
create_topic.rs

1use serde::Serialize;
2use serde_derive::Deserialize;
3
4#[derive(Deserialize, Serialize)]
5pub struct CreateTopic {
6  pub name: String,
7}
8
9impl CreateTopic {
10  pub fn from(name: &str) -> Self {
11    Self {
12      name: name.to_owned(),
13    }
14  }
15}