pub struct User {
pub active_workspace: Option<String>,
pub default_workspace: Option<String>,
pub email: String,
pub id: Option<String>,
pub memberships: Option<Vec<Membership>>,
pub name: Option<String>,
pub profile_picture: Option<String>,
pub settings: Option<Settings>,
pub status: Option<String>,
}
Fields§
§active_workspace: Option<String>
§default_workspace: Option<String>
§email: String
§id: Option<String>
§memberships: Option<Vec<Membership>>
§name: Option<String>
§profile_picture: Option<String>
§settings: Option<Settings>
§status: Option<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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
Source§impl EndPoint for User
impl EndPoint for User
fn endpoint(config: &Config) -> Result<String, Error>
fn add_params(params: EndpointParameters) -> String
fn format_url( id: Option<&str>, params: Option<EndpointParameters>, config: &Config, ) -> Result<String, Error>
fn set_api_key(request: RequestBuilder, config: &Config) -> RequestBuilder
fn create( self, client: &Client, config: &Config, params: Option<EndpointParameters>, ) -> Result<Self, Error>
fn patch( data: Self, client: &Client, config: &Config, params: Option<EndpointParameters>, ) -> Result<Self, Error>
fn update( data: Self, client: &Client, config: &Config, params: Option<EndpointParameters>, ) -> Result<Self, Error>
fn list(
client: &Client,
config: &Config,
params: Option<EndpointParameters>,
) -> Result<Vec<Self>, Error>where
for<'de> Self: Sized + Deserialize<'de>,
fn get(
client: &Client,
config: &Config,
id: &str,
params: Option<EndpointParameters>,
) -> Result<Self, Error>where
for<'de> Self: Sized + Deserialize<'de>,
fn add(&self, client: &Client, config: &Config) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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