pub async fn mark_as_read(&self, id: NotificationId) -> crate::Result<()> {
        let url = format!("notifications/threads/{}", id);
        let url = self.crab.absolute_url(url)?;

        let response = self.crab._patch(url, None::<&()>).await?;
        crate::map_github_error(response).await.map(drop)
    }
/// Marks a single thread as read.
///
/// ```no_run
/// # async fn run() -> octocrab::Result<()> {
/// octocrab::instance()
///     .activity()
///     .notifications()
///     .mark_as_read(123u64.into())
///     .await?;
/// # Ok(())
/// # }
/// ```
Marks a single thread as read.
Marks a single thread as read .
pub async fn mark_as_read(&self, id: NotificationId) -> crate::Result<()> {
        let url = format!("notifications/threads/{}", id);
        let url = self.crab.absolute_url(url)?;
        let response = self.crab._patch(url, None::<&()>).await?;
        crate::map_github_error(response).await.map(drop)
    }
pub async fn mark_as_read ( & self , id : NotificationId ) -> crate :: Result < ( ) > { let url = format ! ( " " id ) ; let url = self . crab . absolute_url ( url ) ? ; let response = self . crab . _patch ( url , None :: < & ( ) > ) . await ? ; crate :: map_github_error ( response ) . await . map ( drop ) }
Marks a single thread as read.
Marks a single thread as read .
&self
id
NotificationId
&self
id
NotificationId
async fn run() -> octocrab::result<()> {
:instance()
.activity()
.notifications()
.mark_as_read(123u64.into())
.await?.
: instance () . activity () . notifications () . mark_as_read ( 123u64 . into () ) . await? .
ok(())
None
}
None