Home page changes depending on role
This commit is contained in:
@@ -1,20 +1,18 @@
|
||||
use std::net::ToSocketAddrs;
|
||||
|
||||
use gloo_net::http::Request;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use wasm_bindgen_futures::spawn_local;
|
||||
use yew::prelude::*;
|
||||
use yew_router::prelude::use_navigator;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct User {
|
||||
pub id: i16,
|
||||
pub last_name: String,
|
||||
pub first_name: String,
|
||||
pub username: String,
|
||||
pub is_admin: bool,
|
||||
pub pwd: String,
|
||||
}
|
||||
// #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
// pub struct User {
|
||||
// pub id: i16,
|
||||
// pub last_name: String,
|
||||
// pub first_name: String,
|
||||
// pub username: String,
|
||||
// pub is_admin: bool,
|
||||
// pub pwd: String,
|
||||
// }
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UserCreateScheme {
|
||||
|
||||
Reference in New Issue
Block a user