pub struct Instance {
pub uri: String,
pub title: String,
pub description: String,
pub email: String,
pub version: String,
pub urls: Option<StreamingApi>,
pub stats: Option<Stats>,
pub thumbnail: Option<String>,
pub languages: Option<Vec<String>>,
pub contact_account: Option<Account>,
pub max_toot_chars: Option<u32>,
}Expand description
A struct containing info of an instance.
Fields§
§uri: StringURI of the current instance
title: StringThe instance’s title.
description: StringA description for the instance.
email: StringAn email address which can be used to contact the instance administrator.
version: StringThe Mastodon version used by instance.
urls: Option<StreamingApi>Urls to the streaming api.
stats: Option<Stats>Stats about the instance.
thumbnail: Option<String>Thumbnail of the server image.
languages: Option<Vec<String>>List of languages used on the server.
contact_account: Option<Account>Contact account for the server.
max_toot_chars: Option<u32>The maximum number of characters allowed in a status
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Instance
impl<'de> Deserialize<'de> for Instance
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
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
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