pub struct Manifest { /* private fields */ }Implementations§
Source§impl Manifest
impl Manifest
pub fn new(manifest_dir: &str) -> Self
Sourcepub fn get(&mut self, key: &str, default: Option<Value>) -> Value
pub fn get(&mut self, key: &str, default: Option<Value>) -> Value
キーからデータを取得 形式: “filename.path.to.key” 例: “connection.common.host”
Sourcepub fn get_meta(&mut self, key: &str) -> HashMap<String, Value>
pub fn get_meta(&mut self, key: &str) -> HashMap<String, Value>
メタデータを取得 指定されたキーのパス上のすべての_始まりキーを収集 _load.mapのキーとplaceholderを完全修飾パスに変換
pub fn get_missing_keys(&self) -> &[String]
pub fn clear_missing_keys(&mut self)
Trait Implementations§
Source§impl Manifest for Manifest
impl Manifest for Manifest
Source§fn get(&mut self, key: &str, default: Option<Value>) -> Value
fn get(&mut self, key: &str, default: Option<Value>) -> Value
キーからデータを取得(メタデータを除く)
形式: “filename.path.to.key”
Source§fn get_meta(&mut self, key: &str) -> HashMap<String, Value>
fn get_meta(&mut self, key: &str) -> HashMap<String, Value>
メタデータを取得
指定されたキーのパス上のすべての_始まりキーを収集
Source§fn get_missing_keys(&self) -> &[String]
fn get_missing_keys(&self) -> &[String]
存在しないキーのリストを取得
Source§fn clear_missing_keys(&mut self)
fn clear_missing_keys(&mut self)
存在しないキーのリストをクリア
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnwindSafe for Manifest
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