pub struct IdMapping {
pub tags: Vec<(String, EventType)>,
}
Expand description
ID to String mapping. Used to decode events
Fields§
Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for IdMapping
impl<'__de, __Context> BorrowDecode<'__de, __Context> for IdMapping
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl From<IdMappingState> for IdMapping
impl From<IdMappingState> for IdMapping
Source§fn from(id_store: IdMappingState) -> Self
fn from(id_store: IdMappingState) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IdMapping
impl RefUnwindSafe for IdMapping
impl Send for IdMapping
impl Sync for IdMapping
impl Unpin for IdMapping
impl UnwindSafe for IdMapping
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