pub struct User { /* private fields */ }Expand description
User API namespace
Implementations§
Source§impl User
impl User
Sourcepub fn get(
&self,
signer_address: impl Into<String>,
) -> Request<UserResponse, GammaError>
pub fn get( &self, signer_address: impl Into<String>, ) -> Request<UserResponse, GammaError>
Get user details
Sourcepub fn get_by_address(
&self,
address: impl Into<String>,
) -> Request<Profile, GammaError>
pub fn get_by_address( &self, address: impl Into<String>, ) -> Request<Profile, GammaError>
Get a public profile by wallet address
(GET /profiles/user_address/{user_address}).
address must be a 0x-prefixed EVM address. Responses are modelled by
Profile, which is field-for-field compatible with the upstream
Profile schema.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for User
impl !RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnsafeUnpin 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