pub struct News {
pub title: String,
pub postId: u16,
pub author: String,
pub body: Option<String>,
pub date: String,
pub image: String,
}Expand description
Struct for the News article API for Toontown Rewritten. It does not have any formal documentation. You can find it at https://www.toontownrewritten.com/api/news or https://www.toontownrewritten.com/api/news/[id].
Fields§
§title: String§postId: u16§body: Option<String>§date: String§image: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for News
impl<'de> Deserialize<'de> for News
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 News
impl RefUnwindSafe for News
impl Send for News
impl Sync for News
impl Unpin for News
impl UnwindSafe for News
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