Change index interval, add slug to search documents (#110)

* Change index interval, add slug to search documents

* Allow the removal of '@' for slug get

* Fix

* Remove name and rename side type

* Run prepare
This commit is contained in:
Geometrically
2020-12-13 18:10:58 -07:00
committed by GitHub
parent df5684a9f8
commit f0b73fd696
14 changed files with 486 additions and 533 deletions

View File

@@ -69,7 +69,7 @@ pub struct Mod {
#[serde(rename_all = "kebab-case")]
pub enum SideType {
Required,
NoFunctionality,
Optional,
Unsupported,
Unknown,
}
@@ -85,7 +85,7 @@ impl SideType {
pub fn as_str(&self) -> &'static str {
match self {
SideType::Required => "required",
SideType::NoFunctionality => "no-functionality",
SideType::Optional => "optional",
SideType::Unsupported => "unsupported",
SideType::Unknown => "unknown",
}
@@ -94,7 +94,7 @@ impl SideType {
pub fn from_str(string: &str) -> SideType {
match string {
"required" => SideType::Required,
"no-functionality" => SideType::NoFunctionality,
"optional" => SideType::Optional,
"unsupported" => SideType::Unsupported,
_ => SideType::Unknown,
}

View File

@@ -47,8 +47,6 @@ impl Default for Permissions {
pub struct TeamMember {
/// The ID of the user associated with the member
pub user_id: UserId,
/// The name of the user
pub name: String,
/// The role of the user in the team
pub role: String,
/// A bitset containing the user's permissions in this team