pub struct PostsClient<TP: TokenProvider> { /* private fields */ }Available on crate feature
posts only.Expand description
Client for interacting with LinkedIn’s Posts API.
Implementations§
Source§impl<TP: TokenProvider> PostsClient<TP>
impl<TP: TokenProvider> PostsClient<TP>
Sourcepub async fn create_text_post(
&self,
post: &TextPost,
) -> Result<PostResponse, Error>
pub async fn create_text_post( &self, post: &TextPost, ) -> Result<PostResponse, Error>
Create a text post using the LinkedIn Posts REST API.
Notes
- Requires the header
X-Restli-Protocol-Version: 2.0.0. - On success, LinkedIn typically returns 201 with
x-restli-idorlocationheaders.
Auto Trait Implementations§
impl<TP> Freeze for PostsClient<TP>where
TP: Freeze,
impl<TP> !RefUnwindSafe for PostsClient<TP>
impl<TP> Send for PostsClient<TP>
impl<TP> Sync for PostsClient<TP>
impl<TP> Unpin for PostsClient<TP>where
TP: Unpin,
impl<TP> UnsafeUnpin for PostsClient<TP>where
TP: UnsafeUnpin,
impl<TP> !UnwindSafe for PostsClient<TP>
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