Home
last modified time | relevance | path

Searched refs:from_text (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/base/security/code_signature/test/unittest/
H A Drust_key_enable_test.rs143 let profile_json =JsonValue::from_text(profile_str).unwrap(); in test_parse_enterprise_profile()
182 let profile_json =JsonValue::from_text(profile_str).unwrap(); in test_parse_enterprise_normal_profile()
221 let profile_json =JsonValue::from_text(profile_str).unwrap(); in test_parse_enterprise_mdm_profile()
265 let mut profile_json =JsonValue::from_text(profile_str).unwrap(); in test_parse_debug_profile()
310 let mut profile_json =JsonValue::from_text(profile_str).unwrap(); in test_parse_iternaltesting_profile()
421 let mut no_type_profile_json =JsonValue::from_text(no_type_profile).unwrap(); in test_parse_invalid_profile()
426 let mut no_distribution_profile_json =JsonValue::from_text(no_distribution_profile).unwrap(); in test_parse_invalid_profile()
431 let no_debug_info_profile_json =JsonValue::from_text(no_debug_info_profile).unwrap(); in test_parse_invalid_profile()
/ohos5.0/commonlibrary/rust/ylong_json/tests/
H A Dylong_json_sdv_test.rs269 let json = JsonValue::from_text(RFC7159_EXAMPLE1).unwrap(); in sdv_json_parse()
272 let json = JsonValue::from_text(RFC7159_EXAMPLE2).unwrap(); in sdv_json_parse()
275 let json = JsonValue::from_text(JSON_PARSE_TEST).unwrap(); in sdv_json_parse()
281 let mut json = JsonValue::from_text(json_text).unwrap(); in sdv_json_modify()
329 let mut json = JsonValue::from_text(RFC7159_EXAMPLE1).unwrap(); in sdv_json_output()
338 let temp = JsonValue::from_text(&vec).unwrap(); in sdv_json_output()
346 let mut json = JsonValue::from_text(RFC7159_EXAMPLE2).unwrap(); in sdv_json_output()
355 let temp = JsonValue::from_text(&vec).unwrap(); in sdv_json_output()
363 let mut json = JsonValue::from_text(JSON_PARSE_TEST).unwrap(); in sdv_json_output()
372 let temp = JsonValue::from_text(&vec).unwrap(); in sdv_json_output()
/ohos5.0/commonlibrary/rust/ylong_json/examples/
H A Dylong_json_example.rs37 let value = JsonValue::from_text(JSON_TEXT).unwrap(); in main()
/ohos5.0/commonlibrary/rust/ylong_json/docs/
H A Duser_guide_zh.md23 // 可以使用 from_text 接口,从一系列实现 AsRef<[u8]> 的类型生成 JsonValue 实例。
25 let json_value = JsonValue::from_text(text);
H A Duser_guide.md25 // You can use `from_text` to generate a `JsonValue` instance from
29 let json_value = JsonValue::from_text(text);
/ohos5.0/commonlibrary/rust/ylong_json/src/
H A Dencoder.rs398 let value = JsonValue::from_text($input).unwrap();
H A Dvalue.rs717 pub fn from_text<T: AsRef<[u8]>>(text: T) -> Result<Self, Error> { in from_text() method
819 Self::from_text(s) in from_str()
H A Dadapter.rs49 let value = match JsonValue::from_text(slice) { in ylong_json_parse()
/ohos5.0/base/security/code_signature/services/key_enable/src/
H A Dprofile_utils.rs173 let profile_json = JsonValue::from_text(profile)?; in parse_and_validate_profile()