Home
last modified time | relevance | path

Searched refs:try_as_string (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/security/code_signature/services/key_enable/src/
H A Dcert_path_utils.rs187 let cert_mode = match cert_profile[MODE_KEY].try_as_string() { in parse_cert_profile()
195 let cert_type = match cert_profile[TYPE_KEY].try_as_string() { in parse_cert_profile()
211 let signing_cert = match cert_profile[SUBJECT_KEY].try_as_string() { in parse_cert_profile()
219 let issuer = match cert_profile[ISSUER_KEY].try_as_string() { in parse_cert_profile()
H A Dprofile_utils.rs138 let bundle_type = profile_json[PROFILE_TYPE_KEY].try_as_string()?.as_str(); in validate_bundle_and_distribution_type()
146 … let distribution_type = profile_json[PROFILE_APP_DISTRIBUTION_TYPE_KEY].try_as_string()?.as_str(); in validate_bundle_and_distribution_type()
179 let bundle_type = profile_json[PROFILE_TYPE_KEY].try_as_string()?.as_str(); in get_cert_details()
186 …EBUG_TYPE => profile_json[PROFILE_BUNDLE_INFO_KEY][PROFILE_BUNDLE_INFO_DEBUG_KEY].try_as_string()?, in get_cert_details()
187 …SE_TYPE => profile_json[PROFILE_BUNDLE_INFO_KEY][PROFILE_BUNDLE_INFO_RELEASE_KEY].try_as_string()?, in get_cert_details()
H A Dcert_chain_utils.rs92 if let Ok(cert_str) = value[subject].try_as_string() { in load_pem_certs_from_json_file()
/ohos5.0/commonlibrary/rust/ylong_json/src/
H A Dvalue.rs396 pub fn try_as_string(&self) -> Result<&JsonString, Error> { in try_as_string() method
1272 assert!(JsonValue::new_null().try_as_string().is_err()); in ut_json_value_try_as_string()
1273 assert!(JsonValue::new_boolean(true).try_as_string().is_err()); in ut_json_value_try_as_string()
1274 assert!(JsonValue::new_boolean(false).try_as_string().is_err()); in ut_json_value_try_as_string()
1275 assert!(JsonValue::new_number(12.34.into()).try_as_string().is_err()); in ut_json_value_try_as_string()
1276 assert!(JsonValue::new_string("hello").try_as_string().is_ok()); in ut_json_value_try_as_string()
1277 assert!(JsonValue::new_array(Array::new()).try_as_string().is_err()); in ut_json_value_try_as_string()
1279 .try_as_string() in ut_json_value_try_as_string()
H A Dadapter.rs392 let string = match string.try_as_string() { in ylong_json_get_value_from_string()