[−][src]Struct nakadion::publisher::EventTypeName
Name of an EventType. The name is constrained by a regular expression.
Note: the name can encode the owner/responsible for this EventType and ideally should follow a common pattern that makes it easy to read and understand, but this level of structure is not enforced. For example a team name and data type can be used such as ‘acme-team.price-change’.
See also Nakadi Manual
Methods
impl EventTypeName
[src]
pub fn try_from_env() -> Result<Option<EventTypeName>, Error>
[src]
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_ EVENT_TYPE_NAME "
pub fn try_from_env_prefixed<T>(
prefix: T
) -> Result<Option<EventTypeName>, Error> where
T: Into<String>,
[src]
prefix: T
) -> Result<Option<EventTypeName>, 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
_
EVENT_TYPE_NAME
"
pub fn try_from_env_named<T>(
var_name: T
) -> Result<Option<EventTypeName>, Error> where
T: AsRef<str>,
[src]
var_name: T
) -> Result<Option<EventTypeName>, 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
.
pub fn from_env() -> Result<EventTypeName, Error>
[src]
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_ EVENT_TYPE_NAME "
pub fn from_env_prefixed<T>(prefix: T) -> Result<EventTypeName, Error> where
T: Into<String>,
[src]
T: Into<String>,
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
_
EVENT_TYPE_NAME
"
pub fn from_env_named<T>(var_name: T) -> Result<EventTypeName, Error> where
T: AsRef<str>,
[src]
T: AsRef<str>,
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
.
pub fn from_env_opt() -> Option<EventTypeName>
[src]
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is "NAKADION_ EVENT_TYPE_NAME "
pub fn from_env_opt_prefixed<T>(prefix: T) -> Option<EventTypeName> where
T: Into<String>,
[src]
T: Into<String>,
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is "prefix
_
EVENT_TYPE_NAME
"
pub fn from_env_opt_named<T>(var_name: T) -> Option<EventTypeName> where
T: AsRef<str>,
[src]
T: AsRef<str>,
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
.
impl EventTypeName
[src]
pub fn new<T>(v: T) -> EventTypeName where
T: Into<String>,
[src]
T: Into<String>,
impl EventTypeName
[src]
pub fn into_inner(self) -> String
[src]
pub fn as_str(&self) -> &str
[src]
pub fn as_bytes(&self) -> &[u8]
[src]
Trait Implementations
impl AsRef<[u8]> for EventTypeName
[src]
impl AsRef<str> for EventTypeName
[src]
impl Clone for EventTypeName
[src]
fn clone(&self) -> EventTypeName
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EventTypeName
[src]
impl<'de> Deserialize<'de> for EventTypeName
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<EventTypeName, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<EventTypeName, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Display for EventTypeName
[src]
impl Eq for EventTypeName
[src]
impl<'_> From<&'_ str> for EventTypeName
[src]
fn from(v: &str) -> EventTypeName
[src]
impl From<String> for EventTypeName
[src]
fn from(v: String) -> EventTypeName
[src]
impl FromStr for EventTypeName
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<EventTypeName, <EventTypeName as FromStr>::Err>
[src]
impl Hash for EventTypeName
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for EventTypeName
[src]
fn cmp(&self, other: &EventTypeName) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<EventTypeName> for EventTypeName
[src]
fn eq(&self, other: &EventTypeName) -> bool
[src]
fn ne(&self, other: &EventTypeName) -> bool
[src]
impl PartialOrd<EventTypeName> for EventTypeName
[src]
fn partial_cmp(&self, other: &EventTypeName) -> Option<Ordering>
[src]
fn lt(&self, other: &EventTypeName) -> bool
[src]
fn le(&self, other: &EventTypeName) -> bool
[src]
fn gt(&self, other: &EventTypeName) -> bool
[src]
fn ge(&self, other: &EventTypeName) -> bool
[src]
impl Serialize for EventTypeName
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for EventTypeName
[src]
impl StructuralPartialEq for EventTypeName
[src]
Auto Trait Implementations
impl RefUnwindSafe for EventTypeName
impl Send for EventTypeName
impl Sync for EventTypeName
impl Unpin for EventTypeName
impl UnwindSafe for EventTypeName
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,