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