#[non_exhaustive]pub struct Disclosure {
pub allowed_files: Vec<String>,
pub allowed_pack_entries: Vec<String>,
pub forbidden_paths: Vec<String>,
pub canaries: Vec<String>,
}Expand description
What the game’s packages may hold, the same for every target: a path is
matched whole, with no pattern, from the package’s root or the pack’s.
What the exporter itself writes (the program, NOTICES.txt, the web
shell, the pack’s file) needs no line here.
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.allowed_files: Vec<String>The files of the game a package may hold beside what the exporter
writes (music/title.ogg, audio/step.pda).
allowed_pack_entries: Vec<String>The files a pack may hold (maps/first.ron).
forbidden_paths: Vec<String>The paths nothing may hold: no file of the package or beside it, no file of a pack, and no program as text (a file a game embeds keeps its path in the program).
canaries: Vec<String>The texts nothing may hold, each written in a file of what isn’t out yet so that a copy of it can be found: UTF-8 or UTF-16, whole, in any file of the package, of a pack or beside it.
Trait Implementations§
Source§impl Clone for Disclosure
impl Clone for Disclosure
Source§fn clone(&self) -> Disclosure
fn clone(&self) -> Disclosure
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 moreSource§impl Debug for Disclosure
impl Debug for Disclosure
Source§impl Default for Disclosure
impl Default for Disclosure
Source§fn default() -> Disclosure
fn default() -> Disclosure
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Disclosurewhere
Disclosure: Default,
impl<'de> Deserialize<'de> for Disclosurewhere
Disclosure: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Disclosure
Source§impl PartialEq for Disclosure
impl PartialEq for Disclosure
impl StructuralPartialEq for Disclosure
Auto Trait Implementations§
impl Freeze for Disclosure
impl RefUnwindSafe for Disclosure
impl Send for Disclosure
impl Sync for Disclosure
impl Unpin for Disclosure
impl UnsafeUnpin for Disclosure
impl UnwindSafe for Disclosure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.