Struct ConfigFile
#[non_exhaustive]pub struct ConfigFile {
pub mod_id: String,
pub kind: ConfigKind,
pub file: String,
pub text: String,
}Expand description
A config’s file as the game read it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mod_id: String§kind: ConfigKind§file: StringThe registered name, relative to config/ (or to a world’s
serverconfig/, where that copy was read).
text: StringTrait Implementations§
§impl Clone for ConfigFile
impl Clone for ConfigFile
§fn clone(&self) -> ConfigFile
fn clone(&self) -> ConfigFile
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 more§impl Debug for ConfigFile
impl Debug for ConfigFile
impl Eq for ConfigFile
§impl From<ConfigFile> for ConfigFile
impl From<ConfigFile> for ConfigFile
§fn from(v: ConfigFile) -> ConfigFile
fn from(v: ConfigFile) -> ConfigFile
Converts to this type from the input type.
§impl PartialEq for ConfigFile
impl PartialEq for ConfigFile
impl StructuralPartialEq for ConfigFile
Auto Trait Implementations§
impl Freeze for ConfigFile
impl RefUnwindSafe for ConfigFile
impl Send for ConfigFile
impl Sync for ConfigFile
impl Unpin for ConfigFile
impl UnsafeUnpin for ConfigFile
impl UnwindSafe for ConfigFile
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