pub struct ExternalEventId(/* private fields */);Expand description
Full, external event id
Combination of RostraId of the author and ShortEventId
of the crate::Event that makes it possible to possibly fetch the event
by anyone.
Encoded as a concatenation/tuple of the two.
Implementations§
Source§impl ExternalEventId
impl ExternalEventId
pub fn new( rostra_id: RostraId, event_id: impl Into<ShortEventId>, ) -> ExternalEventId
pub fn rostra_id(self) -> RostraId
pub fn event_id(self) -> ShortEventId
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for ExternalEventId
impl<'__de, __Context> BorrowDecode<'__de, __Context> for ExternalEventId
Source§fn borrow_decode<__D>(decoder: &mut __D) -> Result<ExternalEventId, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
fn borrow_decode<__D>(decoder: &mut __D) -> Result<ExternalEventId, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for ExternalEventId
impl Clone for ExternalEventId
Source§fn clone(&self) -> ExternalEventId
fn clone(&self) -> ExternalEventId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExternalEventId
Source§impl Debug for ExternalEventId
impl Debug for ExternalEventId
Source§impl<__Context> Decode<__Context> for ExternalEventId
impl<__Context> Decode<__Context> for ExternalEventId
Source§fn decode<__D>(decoder: &mut __D) -> Result<ExternalEventId, DecodeError>where
__D: Decoder<Context = __Context>,
fn decode<__D>(decoder: &mut __D) -> Result<ExternalEventId, DecodeError>where
__D: Decoder<Context = __Context>,
Attempt to decode this type with the given Decode.
Source§impl<'de> Deserialize<'de> for ExternalEventId
impl<'de> Deserialize<'de> for ExternalEventId
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ExternalEventId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ExternalEventId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ExternalEventId
impl Display for ExternalEventId
Source§impl Encode for ExternalEventId
impl Encode for ExternalEventId
impl Eq for ExternalEventId
Source§impl FromStr for ExternalEventId
impl FromStr for ExternalEventId
Source§type Err = ExternalEventIdParseError
type Err = ExternalEventIdParseError
The associated error which can be returned from parsing.
Source§fn from_str(
s: &str,
) -> Result<ExternalEventId, <ExternalEventId as FromStr>::Err>
fn from_str( s: &str, ) -> Result<ExternalEventId, <ExternalEventId as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ExternalEventId
impl Hash for ExternalEventId
Source§impl Ord for ExternalEventId
impl Ord for ExternalEventId
Source§fn cmp(&self, other: &ExternalEventId) -> Ordering
fn cmp(&self, other: &ExternalEventId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ExternalEventId
impl PartialEq for ExternalEventId
Source§impl PartialOrd for ExternalEventId
impl PartialOrd for ExternalEventId
Source§impl Serialize for ExternalEventId
impl Serialize for ExternalEventId
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
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
impl StructuralPartialEq for ExternalEventId
Auto Trait Implementations§
impl Freeze for ExternalEventId
impl RefUnwindSafe for ExternalEventId
impl Send for ExternalEventId
impl Sync for ExternalEventId
impl Unpin for ExternalEventId
impl UnsafeUnpin for ExternalEventId
impl UnwindSafe for ExternalEventId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<F, T> ExpectFrom<F> for T
impl<F, T> ExpectFrom<F> for T
fn expect_from(other: F) -> T
Source§impl<F, I> ExpectInto<I> for Fwhere
I: ExpectFrom<F>,
impl<F, I> ExpectInto<I> for Fwhere
I: ExpectFrom<F>,
fn expect_into(self) -> I
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.