|  |  | @ -1,4 +1,5 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | //! Module containing everything related to an instance.
 |  |  |  | //! Module containing everything related to an instance.
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | use super::account::Account; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | /// A struct containing info of an instance.
 |  |  |  | /// A struct containing info of an instance.
 | 
			
		
	
		
		
			
				
					
					|  |  |  | #[derive(Debug, Clone, Deserialize)] |  |  |  | #[derive(Debug, Clone, Deserialize)] | 
			
		
	
	
		
		
			
				
					|  |  | @ -14,6 +15,29 @@ pub struct Instance { | 
			
		
	
		
		
			
				
					
					|  |  |  |     pub email: String, |  |  |  |     pub email: String, | 
			
		
	
		
		
			
				
					
					|  |  |  |     /// The Mastodon version used by instance.
 |  |  |  |     /// The Mastodon version used by instance.
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     pub version: String, |  |  |  |     pub version: String, | 
			
		
	
		
		
			
				
					
					|  |  |  |     /// `streaming_api`
 |  |  |  |     /// Urls to the streaming api.
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     pub urls: Vec<String>, |  |  |  |     pub urls: Option<StreamingApi>, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     /// Stats about the instance.
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     pub stats: Option<Stats>, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     /// Thumbnail of the server image.
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     pub thumbnail: Option<String>, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     /// List of languages used on the server.
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     pub languages: Option<Vec<String>>, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     /// Contact account for the server.
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     pub contact_account: Option<Account>, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | /// Object containing url for streaming api.
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | #[derive(Debug, Clone, Deserialize)] | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | pub struct StreamingApi { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     /// Url for streaming API, typically a `wss://` url.
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     pub streaming_api: String, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | /// Statistics about the Mastodon instance.
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | #[derive(Debug, Clone, Deserialize)] | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | pub struct Stats { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     user_count: u64, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     status_count: u64, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     domain_count: u64, | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |