pub struct Input {
pub genre: &'static dyn DynGenre,
pub text: String,
pub rating: Option<Rating>,
}Expand description
A validated input record and the registered genre that interprets it.
Fields§
§genre: &'static dyn DynGenreThe genre adapter.
text: StringCanonical text, preserving shared metadata.
rating: Option<Rating>A complete rating when supplied in a JSON envelope.
Auto Trait Implementations§
impl !RefUnwindSafe for Input
impl !UnwindSafe for Input
impl Forget for Input
impl Freeze for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
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