use serde::Deserialize;
#[cfg(feature = "impersonate")]
#[derive(Debug, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct VoyagerProfileResponse {
#[serde(default)]
pub first_name: Option<String>,
#[serde(default)]
pub last_name: Option<String>,
#[serde(default)]
pub headline: Option<String>,
#[serde(default)]
pub summary: Option<String>,
#[serde(default)]
pub industry_name: Option<String>,
#[serde(rename = "geoLocationName", default)]
pub location_name: Option<String>,
}
#[cfg(feature = "impersonate")]
#[derive(Debug, Deserialize, Default)]
pub struct VoyagerActivityResponse {
#[serde(default)]
pub elements: Vec<VoyagerFeedElement>,
}
#[cfg(feature = "impersonate")]
#[derive(Debug, Deserialize, Default)]
pub struct VoyagerFeedElement {
#[serde(default)]
pub value: Option<VoyagerUpdateValue>,
}
#[cfg(feature = "impersonate")]
#[derive(Debug, Deserialize, Default)]
pub struct VoyagerUpdateValue {
#[serde(default)]
pub commentary: Option<VoyagerCommentary>,
}
#[cfg(feature = "impersonate")]
#[derive(Debug, Deserialize, Default)]
pub struct VoyagerCommentary {
pub text: VoyagerText,
}
#[cfg(feature = "impersonate")]
#[derive(Debug, Deserialize, Default)]
pub struct VoyagerText {
#[serde(default)]
pub text: String,
}
#[derive(Debug, Deserialize)]
pub(super) struct LinkedInOEmbed {
pub title: Option<String>,
pub author_name: Option<String>,
pub author_url: Option<String>,
pub thumbnail_url: Option<String>,
pub html: Option<String>,
}