Struct nakadion::consumer::SubscriptionId [−][src]
pub struct SubscriptionId(_);
Expand description
Id of subscription that was created.
Is generated by Nakadi, should not be specified when creating subscription.
See also Nakadi Manual
Implementations
The default name of the environment variable for this type. The name of the environment variable is “ SUBSCRIPTION_ID “
Initialize from the environment.
Returns None
if the value was not found and fails if the value could not be parsed.
The name of the environment variable is “NAKADION_
SUBSCRIPTION_ID
“
pub fn try_from_env_prefixed<T>(
prefix: T
) -> Result<Option<SubscriptionId>, Error> where
T: Into<String>,
pub fn try_from_env_prefixed<T>(
prefix: T
) -> Result<Option<SubscriptionId>, Error> where
T: Into<String>,
Initialize from the environment.
Returns None
if the value was not found and fails if the value could not be parsed.
The name of the environment variable is “prefix
_
SUBSCRIPTION_ID
“
The underscore and prefix will be omitted if prefix is empty.
pub fn try_from_env_named<T>(
var_name: T
) -> Result<Option<SubscriptionId>, Error> where
T: AsRef<str>,
pub fn try_from_env_named<T>(
var_name: T
) -> Result<Option<SubscriptionId>, Error> where
T: AsRef<str>,
Initialize from the environment.
Returns None
if the value was not found and fails if the value could not be parsed.
The name of the environment variable is var_name
.
Initialize from the environment.
Returns None
if the value was not found and fails if the value could not be parsed.
The name of the environment variable is “
SUBSCRIPTION_ID
“
Initialize from the environment. Fails if the value was not found or if the value could not be parsed. The name of the environment variable is “NAKADION_ SUBSCRIPTION_ID “
Initialize from the environment.
Fails if the value was not found or if the value could not be parsed.
The name of the environment variable is “prefix
_
SUBSCRIPTION_ID
“
The underscore and prefix will be omitted if prefix is empty.
Initialize from the environment.
Fails if the value was not found or if the value could not be parsed.
The name of the environment variable is var_name
.
Initialize from the environment. Fails if the value was not found or if the value could not be parsed. The name of the environment variable is “ SUBSCRIPTION_ID “
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is “NAKADION_
SUBSCRIPTION_ID
“
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is “prefix
_
SUBSCRIPTION_ID
“
The underscore and prefix will be omitted if prefix is empty.
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is var_name
.
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is “
SUBSCRIPTION_ID
“
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SubscriptionId, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SubscriptionId, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for SubscriptionId
impl Send for SubscriptionId
impl Sync for SubscriptionId
impl Unpin for SubscriptionId
impl UnwindSafe for SubscriptionId
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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