// AUTO-GENERATED by mizan — do not edit

use serde_json::Value;

use mizan_rust::{MizanClient, MizanError};

use crate::types::{RenameUserOutput, RenameUserInput};

pub async fn call_rename_user(client: &MizanClient, args: &RenameUserInput) -> Result<RenameUserOutput, MizanError> {
    let args_value = serde_json::to_value(args).unwrap_or(Value::Object(Default::default()));
    let raw = client.call("rename_user", args_value).await?;
    serde_json::from_value(raw)
        .map_err(|e| MizanError::transport(format!("decode rename_user result: {e}")))
}
