use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct OAuth2 {
pub identifier: String,
pub callback: String,
pub scopes: Vec<String>,
}
impl OAuth2 {
pub fn new(
identifier: impl Into<String>,
callback: impl Into<String>,
scopes: Vec<String>,
) -> Self {
Self {
identifier: identifier.into(),
callback: callback.into(),
scopes,
}
}
}