pub struct InviteList {
pub data: Vec<Invite>,
pub first_id: Option<String>,
pub last_id: Option<String>,
pub has_more: bool,
}Expand description
Response from the List Invites API
Fields§
§data: Vec<Invite>List of invites in the organization
first_id: Option<String>First ID in the data list (for pagination)
last_id: Option<String>Last ID in the data list (for pagination)
has_more: boolIndicates if there are more results in the requested page direction
Implementations§
Source§impl InviteList
impl InviteList
Sourcepub fn builder() -> InviteListBuilder
pub fn builder() -> InviteListBuilder
Creates a builder for listing invites.
§Example
let credentials = Credentials::from_env();
let invites = InviteList::builder()
.credentials(credentials)
.limit(10u32)
.create()
.await?;Sourcepub async fn create(request: InviteListRequest) -> ApiResponseOrError<Self>
pub async fn create(request: InviteListRequest) -> ApiResponseOrError<Self>
Lists invites in the organization with the given request parameters.
§Example
let credentials = Credentials::from_env();
let request = InviteListRequest {
before_id: None,
after_id: None,
limit: Some(20),
credentials: Some(credentials),
};
let invites = InviteList::create(request).await?;Trait Implementations§
Source§impl Clone for InviteList
impl Clone for InviteList
Source§fn clone(&self) -> InviteList
fn clone(&self) -> InviteList
Returns a copy 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 moreSource§impl Debug for InviteList
impl Debug for InviteList
Source§impl<'de> Deserialize<'de> for InviteList
impl<'de> Deserialize<'de> for InviteList
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 PartialEq for InviteList
impl PartialEq for InviteList
impl Eq for InviteList
impl StructuralPartialEq for InviteList
Auto Trait Implementations§
impl Freeze for InviteList
impl RefUnwindSafe for InviteList
impl Send for InviteList
impl Sync for InviteList
impl Unpin for InviteList
impl UnwindSafe for InviteList
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.