client.rs 450 B

1234567891011121314151617181920
  1. use dioxus::prelude::*;
  2. use openidconnect::{core::CoreClient, ClientId};
  3. #[derive(Props, Clone, Debug)]
  4. pub struct ClientProps {
  5. pub client: CoreClient,
  6. pub client_id: ClientId,
  7. }
  8. impl PartialEq for ClientProps {
  9. fn eq(&self, other: &Self) -> bool {
  10. self.client_id == other.client_id
  11. }
  12. }
  13. impl ClientProps {
  14. pub fn new(client_id: ClientId, client: CoreClient) -> Self {
  15. ClientProps { client_id, client }
  16. }
  17. }