pub struct ServerIdentity {
pub email: String,
pub admin: bool,
}Expand description
The user a token authenticates as: the JSON body of IDENTITY_PATH.
Fields§
§email: StringThe user’s email address, which is their name on the server.
admin: boolWhether the user is an admin (read and write on every repository).
Trait Implementations§
Source§impl Clone for ServerIdentity
impl Clone for ServerIdentity
Source§impl Debug for ServerIdentity
impl Debug for ServerIdentity
Source§impl<'de> Deserialize<'de> for ServerIdentity
impl<'de> Deserialize<'de> for ServerIdentity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ServerIdentity
Source§impl PartialEq for ServerIdentity
impl PartialEq for ServerIdentity
Source§impl Serialize for ServerIdentity
impl Serialize for ServerIdentity
impl StructuralPartialEq for ServerIdentity
Auto Trait Implementations§
impl Freeze for ServerIdentity
impl RefUnwindSafe for ServerIdentity
impl Send for ServerIdentity
impl Sync for ServerIdentity
impl Unpin for ServerIdentity
impl UnsafeUnpin for ServerIdentity
impl UnwindSafe for ServerIdentity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.