pub struct MappingFile {
pub mappings: HashMap<String, String>,
pub next_spec_number: u32,
}Fields§
§mappings: HashMap<String, String>§next_spec_number: u32Implementations§
Source§impl MappingFile
impl MappingFile
Sourcepub fn load_or_create(path: &Path) -> Result<Self>
pub fn load_or_create(path: &Path) -> Result<Self>
Load existing mapping file or create new
Sourcepub fn get_or_create_spec_id(&mut self, uuid: &str) -> String
pub fn get_or_create_spec_id(&mut self, uuid: &str) -> String
Get or create SPEC-ID for a UUID
Trait Implementations§
Source§impl Debug for MappingFile
impl Debug for MappingFile
Source§impl<'de> Deserialize<'de> for MappingFile
impl<'de> Deserialize<'de> for MappingFile
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 MappingFile
impl RefUnwindSafe for MappingFile
impl Send for MappingFile
impl Sync for MappingFile
impl Unpin for MappingFile
impl UnsafeUnpin for MappingFile
impl UnwindSafe for MappingFile
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