bitwarden_api_api/models/
organization_user_accept_request_model.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OrganizationUserAcceptRequestModel {
#[serde(rename = "token")]
pub token: String,
#[serde(rename = "resetPasswordKey", skip_serializing_if = "Option::is_none")]
pub reset_password_key: Option<String>,
}
impl OrganizationUserAcceptRequestModel {
pub fn new(token: String) -> OrganizationUserAcceptRequestModel {
OrganizationUserAcceptRequestModel {
token,
reset_password_key: None,
}
}
}