Struct hedwig::googlepubsub::PubSubConfig [−][src]
#[non_exhaustive]pub struct PubSubConfig {
pub endpoint: String,
pub auth_scopes: Vec<String, Global>,
}
google
only.Expand description
Configuration for connecting to pubsub
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.endpoint: String
Endpoint to connect to pubsub over.
auth_scopes: Vec<String, Global>
The authorization scopes to use when requesting auth tokens
Implementations
Construct a new instance with the default values
Set this field to the given value
Set this field to the given value
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<PubSubConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<PubSubConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PubSubConfig
impl Send for PubSubConfig
impl Sync for PubSubConfig
impl Unpin for PubSubConfig
impl UnwindSafe for PubSubConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more