pub struct PostsHiddenResource<'a> { /* private fields */ }Expand description
client.posts().hidden()
Implementations§
Source§impl<'a> PostsHiddenResource<'a>
impl<'a> PostsHiddenResource<'a>
Sourcepub fn update(
&self,
post_id: impl Display,
domain_type: impl Display,
) -> Result<()>
pub fn update( &self, post_id: impl Display, domain_type: impl Display, ) -> Result<()>
PUT /posts/{postId}/hidden/{domainType}
Hide a post. This endpoint is used to hide a post from the timeline of the user. The post is not deleted, but the user will not see it anymore. NB: If the supplied domain type is group, this will also deactivate post-related subscriptions for that group.
§Example
client.posts().hidden().update(42, "actor")?;Trait Implementations§
Source§impl<'a> Clone for PostsHiddenResource<'a>
impl<'a> Clone for PostsHiddenResource<'a>
impl<'a> Copy for PostsHiddenResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PostsHiddenResource<'a>
impl<'a> !UnwindSafe for PostsHiddenResource<'a>
impl<'a> Freeze for PostsHiddenResource<'a>
impl<'a> Send for PostsHiddenResource<'a>
impl<'a> Sync for PostsHiddenResource<'a>
impl<'a> Unpin for PostsHiddenResource<'a>
impl<'a> UnsafeUnpin for PostsHiddenResource<'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