pub struct UserListInfoObject {
pub user_list_info: UserListInfo,
}Expand description
§Example
use twitter_archive::structs::lists_member::UserListInfoObject;
let json = r#"{
"userListInfo": {
"url": "https://twitter.com/R0oTk1t/lists/1572592337959944198"
}
}"#;
let data: UserListInfoObject = serde_json::from_str(&json).unwrap();
// De-serialized properties
assert_eq!(data.user_list_info.url, "https://twitter.com/R0oTk1t/lists/1572592337959944198");
// Re-serialize is equivalent to original data
assert_eq!(serde_json::to_string_pretty(&data).unwrap(), json);Fields§
§user_list_info: UserListInfo§Example JSON data
{
"userListInfo": {
"url": "https://twitter.com/R0oTk1t/lists/1572592337959944198"
}
}Trait Implementations§
Source§impl Clone for UserListInfoObject
impl Clone for UserListInfoObject
Source§fn clone(&self) -> UserListInfoObject
fn clone(&self) -> UserListInfoObject
Returns a duplicate 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 UserListInfoObject
impl Debug for UserListInfoObject
Source§impl<'de> Deserialize<'de> for UserListInfoObject
impl<'de> Deserialize<'de> for UserListInfoObject
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 Display for UserListInfoObject
impl Display for UserListInfoObject
Auto Trait Implementations§
impl Freeze for UserListInfoObject
impl RefUnwindSafe for UserListInfoObject
impl Send for UserListInfoObject
impl Sync for UserListInfoObject
impl Unpin for UserListInfoObject
impl UnwindSafe for UserListInfoObject
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