pub struct SectionMap {
pub rev: u32,
/* private fields */
}Expand description
一段配置(一个 ns 一段;磁盘上 = ${config_dir}/ek/cfg/<ns>.ini)。
纯数据容器(BD-CFG-2):键不重复(set 覆盖同键);rev 对应文件首行
rev = 1(语义迁移由插件按 rev 自裁,BD-CFG-3);列表值 = 逗号并列字符串,
分列/归一归格式层。不含解析——从文件到本类型只发生在 ek-cfg。
Fields§
§rev: u32文件首行 rev;无文件回灌时 = 0(插件自判首启形态)。
Implementations§
Source§impl SectionMap
impl SectionMap
Sourcepub fn get_secret_key(&self, key: &str) -> Option<&str>
pub fn get_secret_key(&self, key: &str) -> Option<&str>
秘面引用键借查(存在且为秘面才 Some)。
Trait Implementations§
Source§impl Clone for SectionMap
impl Clone for SectionMap
Source§impl Debug for SectionMap
impl Debug for SectionMap
Source§impl Default for SectionMap
impl Default for SectionMap
impl Eq for SectionMap
Source§impl PartialEq for SectionMap
impl PartialEq for SectionMap
impl StructuralPartialEq for SectionMap
Auto Trait Implementations§
impl Freeze for SectionMap
impl RefUnwindSafe for SectionMap
impl Send for SectionMap
impl Sync for SectionMap
impl Unpin for SectionMap
impl UnsafeUnpin for SectionMap
impl UnwindSafe for SectionMap
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