wacht 0.1.0-beta.5

Official Rust SDK for the Wacht platform, providing type-safe API client and authentication middleware
Documentation
/*
 * Wacht Backend API
 *
 * Backend API for the Wacht platform console
 *
 * The version of the OpenAPI document: 1.0.0
 *
 * Generated by: https://openapi-generator.tech
 */

use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddOrganizationMemberRequest {
    #[serde(rename = "user_id")]
    pub user_id: String,
    #[serde(rename = "role_ids")]
    pub role_ids: Vec<String>,
}

impl AddOrganizationMemberRequest {
    pub fn new(user_id: String, role_ids: Vec<String>) -> AddOrganizationMemberRequest {
        AddOrganizationMemberRequest { user_id, role_ids }
    }
}