(app_id: &str, page_id: u64)
| 1178 | } |
| 1179 | |
| 1180 | fn encode_target_id(app_id: &str, page_id: u64) -> String { |
| 1181 | format!("{}-{page_id}", hex::encode(app_id.as_bytes())) |
| 1182 | } |
| 1183 | |
| 1184 | fn decode_target_id(target_id: &str) -> Result<(String, u64), AppError> { |
| 1185 | let Some((encoded_app_id, page_id)) = target_id.rsplit_once('-') else { |
no outgoing calls