Struct LinkedInClient
pub struct LinkedInClient { /* private fields */ }Implementations§
Source§impl LinkedInClient
impl LinkedInClient
pub fn new(workspace_dir: PathBuf, api_version: String) -> Self
pub async fn get_credentials(&self) -> Result<LinkedInCredentials>
pub async fn create_post( &self, text: &str, visibility: &str, article_url: Option<&str>, article_title: Option<&str>, scheduled_at: Option<&str>, ) -> Result<String>
pub async fn list_posts(&self, count: usize) -> Result<Vec<PostSummary>>
pub async fn add_comment(&self, post_id: &str, text: &str) -> Result<String>
pub async fn add_reaction( &self, post_id: &str, reaction_type: &str, ) -> Result<()>
pub async fn delete_post(&self, post_id: &str) -> Result<()>
pub async fn get_engagement(&self, post_id: &str) -> Result<EngagementSummary>
pub async fn get_profile(&self) -> Result<ProfileInfo>
pub async fn upload_image( &self, image_bytes: &[u8], token: &str, person_id: &str, ) -> Result<String>
Auto Trait Implementations§
impl Freeze for LinkedInClient
impl RefUnwindSafe for LinkedInClient
impl Send for LinkedInClient
impl Sync for LinkedInClient
impl Unpin for LinkedInClient
impl UnsafeUnpin for LinkedInClient
impl UnwindSafe for LinkedInClient
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more