Skip to main content

hank_types/
hank.user.rs

1// @generated
2// This file is @generated by prost-build.
3/// A user role
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct Role {
6    /// The role id
7    #[prost(string, tag="1")]
8    pub id: ::prost::alloc::string::String,
9    /// The role name
10    #[prost(string, tag="2")]
11    pub name: ::prost::alloc::string::String,
12}
13/// A chat user
14#[derive(Clone, PartialEq, ::prost::Message)]
15pub struct User {
16    /// The users id
17    #[prost(string, tag="1")]
18    pub id: ::prost::alloc::string::String,
19    /// The users username
20    #[prost(string, tag="2")]
21    pub name: ::prost::alloc::string::String,
22    /// The users display name
23    #[prost(string, tag="3")]
24    pub display_name: ::prost::alloc::string::String,
25    /// Any roles the user might have
26    #[prost(message, repeated, tag="4")]
27    pub roles: ::prost::alloc::vec::Vec<Role>,
28}
29// @@protoc_insertion_point(module)