Searched refs:from_file (Results 1 – 6 of 6) sorted by relevance
28 // 可以使用 from_file 接口,从对应路径的文件读取内容,并尝试生成 JsonValue 实例。30 let json_value = JsonValue::from_file(path);
32 // You can use `from_file` to read a file from corresponding path and 36 let json_value = JsonValue::from_file(path);
81 let value = match JsonValue::from_file(file_path) { in load_pem_certs_from_json_file()
262 let value = match JsonValue::from_file(file_path) { in load_cert_path_from_json_file()
41 old_metadata = _Metadata.from_file(jsonfile)278 def from_file(cls, fileobj): member in _Metadata
681 pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, Error> { in from_file() method