pub struct ConfigFile<'a> {
pub file_name: &'a str,
pub bytes: &'a [u8],
}Expand description
The author’s server config file, carried into the package VERBATIM.
bytes are written to the MT_SERVER_CONFIG layer byte-for-byte and are
never re-derived from a parsed struct — packing must not rewrite,
templatize, normalize or reformat what the author wrote. file_name is
recorded in the layer descriptor’s org.opencontainers.image.title
annotation so unpack can restore it under its original name.
Distinct from OpenApiSpecFile on purpose: two types rather than one
shared “named blob” means a caller cannot transpose the config and the spec.
Fields§
§file_name: &'a strThe config file’s original name, e.g. london-tube.toml.
bytes: &'a [u8]The config file’s exact bytes.
Trait Implementations§
Source§impl<'a> Clone for ConfigFile<'a>
impl<'a> Clone for ConfigFile<'a>
impl<'a> Copy for ConfigFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConfigFile<'a>
impl<'a> RefUnwindSafe for ConfigFile<'a>
impl<'a> Send for ConfigFile<'a>
impl<'a> Sync for ConfigFile<'a>
impl<'a> Unpin for ConfigFile<'a>
impl<'a> UnsafeUnpin for ConfigFile<'a>
impl<'a> UnwindSafe for ConfigFile<'a>
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