pub struct MutingObject {
pub muting: Muting,
}Expand description
§Example
use twitter_archive::structs::mute::MutingObject;
let json = r#"{
"muting": {
"accountId": "3769699761",
"userLink": "https://twitter.com/intent/user?user_id=3769699761"
}
}"#;
let data: MutingObject = serde_json::from_str(&json).unwrap();
// De-serialized properties
assert_eq!(data.muting.account_id, "3769699761");
assert_eq!(data.muting.user_link, "https://twitter.com/intent/user?user_id=3769699761");
// Re-serialize is equivalent to original data
assert_eq!(serde_json::to_string_pretty(&data).unwrap(), json);Fields§
§muting: Muting§Example JSON data
{
"muting": {
"accountId": "3769699761",
"userLink": "https://twitter.com/intent/user?user_id=3769699761"
}
}Trait Implementations§
Source§impl Clone for MutingObject
impl Clone for MutingObject
Source§fn clone(&self) -> MutingObject
fn clone(&self) -> MutingObject
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 MutingObject
impl Debug for MutingObject
Source§impl<'de> Deserialize<'de> for MutingObject
impl<'de> Deserialize<'de> for MutingObject
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 MutingObject
impl Display for MutingObject
Auto Trait Implementations§
impl Freeze for MutingObject
impl RefUnwindSafe for MutingObject
impl Send for MutingObject
impl Sync for MutingObject
impl Unpin for MutingObject
impl UnwindSafe for MutingObject
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