mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
33 lines
586 B
Rust
33 lines
586 B
Rust
|
use lldap_model::*;
|
||
|
use yew::prelude::*;
|
||
|
|
||
|
pub struct App {}
|
||
|
|
||
|
pub enum Msg {
|
||
|
BindRequest(BindRequest),
|
||
|
ListUsersRequest(ListUsersRequest),
|
||
|
}
|
||
|
|
||
|
impl Component for App {
|
||
|
type Message = Msg;
|
||
|
type Properties = ();
|
||
|
|
||
|
fn create(_: Self::Properties, _: ComponentLink<Self>) -> Self {
|
||
|
App {}
|
||
|
}
|
||
|
|
||
|
fn update(&mut self, _msg: Self::Message) -> ShouldRender {
|
||
|
true
|
||
|
}
|
||
|
|
||
|
fn change(&mut self, _: Self::Properties) -> ShouldRender {
|
||
|
false
|
||
|
}
|
||
|
|
||
|
fn view(&self) -> Html {
|
||
|
html! {
|
||
|
<p>{ "Hello world!" }</p>
|
||
|
}
|
||
|
}
|
||
|
}
|