fix(nfc): adapt backend invoke to frontend

This commit is contained in:
pascalauroboa
2026-05-11 23:06:40 +02:00
parent 114e902537
commit e34306e083
2 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ impl<R: Runtime> Nfc<R> {
.map_err(Into::into)
}
pub fn scan(&self, payload: ScanRequest) -> crate::Result<ScanResponse> {
pub fn scan(&self, payload: ScanRequest) -> crate::Result<NfcTag> {
self.0
.run_mobile_plugin("scan", payload)
.map_err(Into::into)
+2 -7
View File
@@ -43,16 +43,11 @@ pub struct NfcTagRecord {
#[derive(Deserialize)]
pub struct NfcTag {
pub id: String,
pub kind: String,
pub id: Vec<u8>,
pub kind: Vec<String>,
pub records: Vec<NfcTagRecord>,
}
#[derive(Deserialize)]
pub struct ScanResponse {
pub tag: NfcTag,
}
#[derive(Debug, Default, Serialize)]
pub struct UriFilter {
scheme: Option<String>,