pub struct Data {
pub name: &'static str,
pub regex: &'static str,
pub plural_name: bool,
pub description: Option<&'static str>,
pub exploit: Option<&'static str>,
pub rarity: f32,
pub url: Option<&'static str>,
pub tags: &'static [&'static str],
/* private fields */
}
Expand description
structure for parsing data from JSON file.
Fields§
§name: &'static str
§regex: &'static str
§plural_name: bool
§description: Option<&'static str>
§exploit: Option<&'static str>
§rarity: f32
§url: Option<&'static str>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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