pub struct LabelsApi<'a> { /* private fields */ }Expand description
Labels API façade.
Implementations§
Source§impl<'a> LabelsApi<'a>
impl<'a> LabelsApi<'a>
Sourcepub fn new(client: &'a GmailClient) -> Self
pub fn new(client: &'a GmailClient) -> Self
Wraps an existing GmailClient for label operations.
Sourcepub async fn list(&self) -> Result<LabelListResponse>
pub async fn list(&self) -> Result<LabelListResponse>
Lists every label on the mailbox.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LabelsApi<'a>
impl<'a> !UnwindSafe for LabelsApi<'a>
impl<'a> Freeze for LabelsApi<'a>
impl<'a> Send for LabelsApi<'a>
impl<'a> Sync for LabelsApi<'a>
impl<'a> Unpin for LabelsApi<'a>
impl<'a> UnsafeUnpin for LabelsApi<'a>
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