pub struct Context {
pub dictionaries: HashMap<String, ContextDictionary>,
pub class_map: HashMap<String, PiiClass>,
pub fields: Map<String, Value>,
}Fields§
§dictionaries: HashMap<String, ContextDictionary>§class_map: HashMap<String, PiiClass>§fields: Map<String, Value>Implementations§
Source§impl Context
impl Context
pub fn load(path: &Path) -> Result<Self, ContextError>
pub fn from_json_str(raw: &str) -> Result<Self, ContextError>
pub fn fields_typed(&self) -> ContextFieldsRef<'_>
Trait Implementations§
impl StructuralPartialEq for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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