pub struct UsersEndpoint { /* private fields */ }
Implementations§
Source§impl UsersEndpoint
impl UsersEndpoint
pub async fn list_all_users( &self, start_cursor: Option<&str>, page_size: Option<u32>, ) -> Result<ListAllUsersResponse, NotionClientError>
Source§impl UsersEndpoint
impl UsersEndpoint
pub async fn retrieve_a_user( &self, user_id: &str, ) -> Result<User, NotionClientError>
pub async fn retrieve_your_tokens_bot_user( &self, ) -> Result<User, NotionClientError>
Trait Implementations§
Source§impl Clone for UsersEndpoint
impl Clone for UsersEndpoint
Source§fn clone(&self) -> UsersEndpoint
fn clone(&self) -> UsersEndpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for UsersEndpoint
impl !RefUnwindSafe for UsersEndpoint
impl Send for UsersEndpoint
impl Sync for UsersEndpoint
impl Unpin for UsersEndpoint
impl !UnwindSafe for UsersEndpoint
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