[−][src]Struct nakadi_types::event_type::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
Implementations
impl EventTypeName
[src]
impl EventTypeName
[src]
pub fn into_inner(self) -> String
[src]
pub fn as_str(&self) -> &str
[src]
pub fn as_bytes(&self) -> &[u8]
[src]
impl EventTypeName
[src]
pub const ENV_TYPE_NAME: &'static str
[src]
The default name of the environment variable for this type. The name of the environment variable is " EVENT_TYPE_NAME "
pub fn try_from_env() -> Result<Option<Self>, 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: Into<String>>(
prefix: T
) -> Result<Option<Self>, Error>
[src]
prefix: T
) -> Result<Option<Self>, Error>
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
"
The underscore and prefix will be omitted if prefix is empty.
pub fn try_from_env_named<T: AsRef<str>>(
var_name: T
) -> Result<Option<Self>, Error>
[src]
var_name: T
) -> Result<Option<Self>, Error>
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 try_from_env_type_name() -> Result<Option<Self>, 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 "
EVENT_TYPE_NAME
"
pub fn from_env() -> Result<Self, 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: Into<String>>(prefix: T) -> Result<Self, 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 "prefix
_
EVENT_TYPE_NAME
"
The underscore and prefix will be omitted if prefix is empty.
pub fn from_env_named<T: AsRef<str>>(var_name: T) -> Result<Self, 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 var_name
.
pub fn from_env_type_name() -> Result<Self, 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 " EVENT_TYPE_NAME "
pub fn from_env_opt() -> Option<Self>
[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: Into<String>>(prefix: T) -> Option<Self>
[src]
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
"
The underscore and prefix will be omitted if prefix is empty.
pub fn from_env_opt_named<T: AsRef<str>>(var_name: T) -> Option<Self>
[src]
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
.
pub fn from_env_opt_type_name() -> Option<Self>
[src]
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is "
EVENT_TYPE_NAME
"
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<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__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<EventTypeName> for String
[src]
fn from(v: EventTypeName) -> String
[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<Self, Self::Err>
[src]
impl Hash for EventTypeName
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
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::Ok, __S::Error> where
__S: Serializer,
[src]
__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: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,