lldap/app/src/app.rs

34 lines
587 B
Rust
Raw Normal View History

use lldap_model::*;
use yew::prelude::*;
pub struct App {}
pub enum Msg {
BindRequest(BindRequest),
ListUsersRequest(ListUsersRequest),
}
2021-05-09 09:52:53 +00:00
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>
}
}
}