pub struct ObfuscationMapping {
pub mapping: HashMap<String, String>,
pub metadata: MappingMetadata,
}Fields§
§mapping: HashMap<String, String>§metadata: MappingMetadataImplementations§
Source§impl ObfuscationMapping
impl ObfuscationMapping
pub fn from_obfuscator(obfuscator: &NameObfuscator) -> Self
pub fn save_to_file(&self, path: &Path) -> Result<()>
pub fn load_from_file(path: &Path) -> Result<Self>
pub fn deobfuscate(&self, obfuscated: &str) -> Option<&str>
Trait Implementations§
Source§impl Clone for ObfuscationMapping
impl Clone for ObfuscationMapping
Source§fn clone(&self) -> ObfuscationMapping
fn clone(&self) -> ObfuscationMapping
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 ObfuscationMapping
impl Debug for ObfuscationMapping
Source§impl<'de> Deserialize<'de> for ObfuscationMapping
impl<'de> Deserialize<'de> for ObfuscationMapping
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
Auto Trait Implementations§
impl Freeze for ObfuscationMapping
impl RefUnwindSafe for ObfuscationMapping
impl Send for ObfuscationMapping
impl Sync for ObfuscationMapping
impl Unpin for ObfuscationMapping
impl UnsafeUnpin for ObfuscationMapping
impl UnwindSafe for ObfuscationMapping
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