gcp-pubsub 0.1.0

A surf-based Google Cloud Platform PubSub client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::Serialize;
use serde_derive::Deserialize;

#[derive(Deserialize, Serialize)]
pub struct CreateTopic {
  pub name: String,
}

impl CreateTopic {
  pub fn from(name: &str) -> Self {
    Self {
      name: name.to_owned(),
    }
  }
}