pub struct UserProfileResponse {
pub display_name: String,
pub user_id: String,
pub picture_url: Option<String>,
pub status_message: Option<String>,
pub language: Option<String>,
}
Fields§
§display_name: String
User’s display name
user_id: String
User ID
picture_url: Option<String>
Profile image URL. https
image URL. Not included in the response if the user doesn’t have a profile image.
status_message: Option<String>
User’s status message. Not included in the response if the user doesn’t have a status message.
language: Option<String>
User’s language, as a BCP 47 language tag. Not included in the response if the user hasn’t yet consented to the LINE Privacy Policy.
Implementations§
Source§impl UserProfileResponse
impl UserProfileResponse
pub fn new(display_name: String, user_id: String) -> UserProfileResponse
Trait Implementations§
Source§impl Clone for UserProfileResponse
impl Clone for UserProfileResponse
Source§fn clone(&self) -> UserProfileResponse
fn clone(&self) -> UserProfileResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UserProfileResponse
impl Debug for UserProfileResponse
Source§impl Default for UserProfileResponse
impl Default for UserProfileResponse
Source§fn default() -> UserProfileResponse
fn default() -> UserProfileResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserProfileResponse
impl<'de> Deserialize<'de> for UserProfileResponse
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
Source§impl PartialEq for UserProfileResponse
impl PartialEq for UserProfileResponse
Source§impl Serialize for UserProfileResponse
impl Serialize for UserProfileResponse
impl StructuralPartialEq for UserProfileResponse
Auto Trait Implementations§
impl Freeze for UserProfileResponse
impl RefUnwindSafe for UserProfileResponse
impl Send for UserProfileResponse
impl Sync for UserProfileResponse
impl Unpin for UserProfileResponse
impl UnwindSafe for UserProfileResponse
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