use mizan_rust::{MizanClient, MizanError}; use crate::types::{FindUserOutput, FindUserInput}; pub async fn call_find_user(client: &MizanClient, args: &FindUserInput) -> Result, MizanError> { let args_value = serde_json::to_value(args) .map_err(|e| MizanError::transport(format!("encode find_user args: {e}")))?; let raw = client.call("find_user", args_value).await?; serde_json::from_value(raw) .map_err(|e| MizanError::transport(format!("decode find_user result: {e}"))) }