31 lines
533 B
Rust
31 lines
533 B
Rust
mod database;
|
|
mod error;
|
|
|
|
use chrono::{DateTime, Utc};
|
|
use id::AppID;
|
|
|
|
pub use crate::error::Error;
|
|
|
|
#[derive(Debug)]
|
|
pub struct App {
|
|
id: AppID,
|
|
created_at: DateTime<Utc>,
|
|
updated_at: DateTime<Utc>,
|
|
label: String,
|
|
redirect_uri: String,
|
|
secret: String,
|
|
is_confidential: bool,
|
|
is_archived: bool,
|
|
}
|
|
|
|
impl App {
|
|
pub fn id(&self) -> &AppID {
|
|
&self.id
|
|
}
|
|
pub fn label(&self) -> &str {
|
|
&self.label
|
|
}
|
|
pub fn redirect_uri(&self) -> &str {
|
|
&self.redirect_uri
|
|
}
|
|
}
|