Struct teaclave_types::User
source · [−]pub struct User {
pub id: UserID,
pub registered_functions: Vec<String>,
pub allowed_functions: Vec<String>,
}
Fields
id: UserID
registered_functions: Vec<String>
allowed_functions: Vec<String>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
sourcefn 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
sourceimpl Storable for User
impl Storable for User
fn key_prefix() -> &'static str
fn uuid(&self) -> Uuid
fn key_string(&self) -> String
fn key(&self) -> Vec<u8>
fn match_prefix(key: &str) -> bool
fn to_vec(&self) -> Result<Vec<u8>>
fn from_slice(bytes: &[u8]) -> Result<Self>
fn external_id(&self) -> ExternalID
Auto Trait Implementations
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request