pub struct Code<T> {
pub code: T,
pub parent_code: Option<T>,
pub description: String,
}
Expand description
Data about a single code, note that we parameterize the type of the code identifier.
Fields§
§code: T
the code identifier
parent_code: Option<T>
the parent code, allowing for simple hierarchy
description: String
a description of this code
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Code<T>where
T: Freeze,
impl<T> RefUnwindSafe for Code<T>where
T: RefUnwindSafe,
impl<T> Send for Code<T>where
T: Send,
impl<T> Sync for Code<T>where
T: Sync,
impl<T> Unpin for Code<T>where
T: Unpin,
impl<T> UnwindSafe for Code<T>where
T: UnwindSafe,
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