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
16
17
use serde::Serialize;
use serde_derive::Deserialize;

#[derive(Deserialize, Serialize)]
pub struct PullSubscription {
  pub return_immediately: bool,
  pub max_messages: i128,
}

impl PullSubscription {
  pub fn new() -> Self {
    Self {
      return_immediately: true,
      max_messages: 100,
    }
  }
}