From 748c8a3353df887ee4b01e0e1327aa95c1c7225a Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 27 Feb 2026 06:16:23 +0800 Subject: Add remote flag to IndexSource and parsing support --- systems/sheet/src/mapping.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'systems/sheet/src/mapping.rs') diff --git a/systems/sheet/src/mapping.rs b/systems/sheet/src/mapping.rs index f509c0b..3dfb67e 100644 --- a/systems/sheet/src/mapping.rs +++ b/systems/sheet/src/mapping.rs @@ -6,6 +6,8 @@ use serde::{Deserialize, Serialize}; use crate::{index_source::IndexSource, mapping::error::ParseMappingError}; pub mod error; +pub mod parse; +pub mod parse_test; // Validation rules for LocalMapping // LocalMapping is a key component for writing and reading SheetData @@ -438,6 +440,14 @@ impl std::fmt::Display for LocalMapping { } } +impl TryFrom for LocalMapping { + type Error = ParseMappingError; + + fn try_from(s: String) -> Result { + s.as_str().try_into() + } +} + // Implement editing functionality for MappingBuf and LocalMapping impl MappingBuf { -- cgit