pub struct UsersGetContextForUserParams<'req> { /* private fields */ }Expand description
Query parameters for the Get contextual information for a user endpoint.
Implementations§
Source§impl<'req> UsersGetContextForUserParams<'req>
impl<'req> UsersGetContextForUserParams<'req>
pub fn new() -> Self
Sourcepub fn subject_type(self, subject_type: &'req str) -> Self
pub fn subject_type(self, subject_type: &'req str) -> Self
Identifies which additional information you’d like to receive about the person’s hovercard. Can be organization, repository, issue, pull_request. Required when using subject_id.
Sourcepub fn subject_id(self, subject_id: &'req str) -> Self
pub fn subject_id(self, subject_id: &'req str) -> Self
Uses the ID for the subject_type you specified. Required when using subject_type.
Trait Implementations§
Source§impl<'req> Default for UsersGetContextForUserParams<'req>
impl<'req> Default for UsersGetContextForUserParams<'req>
Source§fn default() -> UsersGetContextForUserParams<'req>
fn default() -> UsersGetContextForUserParams<'req>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'req> Freeze for UsersGetContextForUserParams<'req>
impl<'req> RefUnwindSafe for UsersGetContextForUserParams<'req>
impl<'req> Send for UsersGetContextForUserParams<'req>
impl<'req> Sync for UsersGetContextForUserParams<'req>
impl<'req> Unpin for UsersGetContextForUserParams<'req>
impl<'req> UnwindSafe for UsersGetContextForUserParams<'req>
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