ampapi 0.1.6

An API that allows you to communicate with AMP installations from within Rust
Documentation
#![allow(dead_code, non_camel_case_types, non_snake_case, unused_imports, unused_mut)]
use crate::{AMPAPI, types::*};

use std::collections::HashMap;

use serde_json::{Value, Map};

/// A Rust library for the AMP API
/// Author: p0t4t0sandwich

/// struct steamcmdplugin
#[derive(Debug, Clone)]
pub struct steamcmdplugin {
    pub ampapi: AMPAPI
}

impl steamcmdplugin {
	///new - Creates a new steamcmdplugin object
	pub fn new(ampapi: AMPAPI) -> steamcmdplugin {
		steamcmdplugin {
			ampapi
		}
	}

    /// CancelSteamGuard - 
    /// Name Description Optional
    /// Return core::result::Result<Value, reqwest::Error>
    pub fn CancelSteamGuard(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
        let mut args: HashMap<String, Value> = HashMap::new();
        self.ampapi.api_call::<Value>("steamcmdplugin/CancelSteamGuard".to_string(), args)
    }

    /// SteamGuardCode - 
    /// Name Description Optional
    /// * `param` code String  False
    /// Return core::result::Result<Value, reqwest::Error>
    pub fn SteamGuardCode(&mut self, code: String) -> core::result::Result<Value, reqwest::Error> {
        let mut args: HashMap<String, Value> = HashMap::new();
        args.insert("code".to_string(), code.into());
        self.ampapi.api_call::<Value>("steamcmdplugin/SteamGuardCode".to_string(), args)
    }

    /// SteamUsernamePassword - 
    /// Name Description Optional
    /// * `param` username String  False
    /// * `param` password String  False
    /// Return core::result::Result<Value, reqwest::Error>
    pub fn SteamUsernamePassword(&mut self, username: String, password: String) -> core::result::Result<Value, reqwest::Error> {
        let mut args: HashMap<String, Value> = HashMap::new();
        args.insert("username".to_string(), username.into());
        args.insert("password".to_string(), password.into());
        self.ampapi.api_call::<Value>("steamcmdplugin/SteamUsernamePassword".to_string(), args)
    }

}