2023-04-16 22:16:22 +02:00
|
|
|
use crate::api::schemas::schemas::InstancePoliciesSchema;
|
|
|
|
use crate::gateway::Gateway;
|
|
|
|
use crate::limit::LimitedRequester;
|
|
|
|
use crate::URLBundle;
|
|
|
|
|
|
|
|
use std::collections::HashMap;
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
2023-04-16 23:03:12 +02:00
|
|
|
/**
|
|
|
|
The [`Instance`] what you will be using to perform all sorts of actions on the Spacebar server.
|
|
|
|
*/
|
2023-04-16 22:16:22 +02:00
|
|
|
pub struct Instance {
|
|
|
|
main_url: String,
|
|
|
|
urls: URLBundle,
|
|
|
|
instance_info: InstancePoliciesSchema,
|
|
|
|
requester: LimitedRequester,
|
2023-04-16 23:03:12 +02:00
|
|
|
gateway: Gateway,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Instance {
|
|
|
|
pub fn new() {}
|
2023-04-16 22:16:22 +02:00
|
|
|
}
|