pub struct Profile {Show 27 fields
pub entity_urn: Option<String>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub headline: Option<String>,
pub summary: Option<String>,
pub industry_name: Option<String>,
pub industry_urn: Option<String>,
pub geo_country_name: Option<String>,
pub geo_country_urn: Option<String>,
pub geo_location_name: Option<String>,
pub geo_location_backfilled: Option<bool>,
pub geo_location: Option<GeoLocation>,
pub address: Option<Address>,
pub birth_date: Option<BirthDate>,
pub default_locale: Option<Locale>,
pub supported_locales: Option<Vec<Locale>>,
pub location: Option<Location>,
pub location_name: Option<String>,
pub mini_profile: Option<MiniProfile>,
pub profile_picture: Option<ProfilePicture>,
pub profile_picture_original_image: Option<VectorImageContainer>,
pub show_education_on_profile_top_card: Option<bool>,
pub student: Option<bool>,
pub elt: Option<bool>,
pub version_tag: Option<String>,
pub profile_id: String,
pub contact: ContactInfo,
}Expand description
Enhanced Profile with all fields from JSON
Fields§
§entity_urn: Option<String>§first_name: Option<String>§last_name: Option<String>§headline: Option<String>§summary: Option<String>§industry_name: Option<String>§industry_urn: Option<String>§geo_country_name: Option<String>§geo_country_urn: Option<String>§geo_location_name: Option<String>§geo_location_backfilled: Option<bool>§geo_location: Option<GeoLocation>§address: Option<Address>§birth_date: Option<BirthDate>§default_locale: Option<Locale>§supported_locales: Option<Vec<Locale>>§location: Option<Location>§location_name: Option<String>§mini_profile: Option<MiniProfile>§profile_picture: Option<ProfilePicture>§profile_picture_original_image: Option<VectorImageContainer>§show_education_on_profile_top_card: Option<bool>§student: Option<bool>§elt: Option<bool>§version_tag: Option<String>§profile_id: String§contact: ContactInfoImplementations§
Source§impl Profile
impl Profile
Sourcepub fn get_full_name(&self) -> Option<String>
pub fn get_full_name(&self) -> Option<String>
Helper method to get full name
Sourcepub fn get_profile_image_url(&self) -> Option<Url>
pub fn get_profile_image_url(&self) -> Option<Url>
Helper method to get profile image URL
Sourcepub fn get_profile_id(&self) -> Option<String>
pub fn get_profile_id(&self) -> Option<String>
Get profile ID from entity URN
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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