first pass of merging in warp (doesn't build)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
use std::fmt;
|
||||
|
||||
use super::object::{Container, Space};
|
||||
use crate::scalars::Time;
|
||||
use crate::schema;
|
||||
@@ -32,6 +34,16 @@ pub enum OwnerType {
|
||||
User,
|
||||
}
|
||||
|
||||
impl fmt::Display for OwnerType {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let owner_type = match self {
|
||||
OwnerType::Team => "Team",
|
||||
OwnerType::User => "Personal",
|
||||
};
|
||||
write!(f, "{owner_type}")
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(cynic::QueryFragment, Debug, Clone)]
|
||||
pub struct UserGuest {
|
||||
pub firebase_uid: cynic::Id,
|
||||
|
||||
Reference in New Issue
Block a user