add: channels, messages
This commit is contained in:
parent
67492cf73f
commit
7774124bd0
40 changed files with 2238 additions and 115 deletions
|
@ -190,9 +190,12 @@ pub struct UserSettings {
|
|||
/// If dislikes are hidden for the user.
|
||||
#[serde(default)]
|
||||
pub hide_dislikes: bool,
|
||||
/// The timeline that the "Home" button takes you to
|
||||
/// The timeline that the "Home" button takes you to.
|
||||
#[serde(default)]
|
||||
pub default_timeline: DefaultTimelineChoice,
|
||||
/// If other users that you aren't following can add you to chats.
|
||||
#[serde(default)]
|
||||
pub private_chats: bool,
|
||||
}
|
||||
|
||||
impl Default for User {
|
||||
|
@ -352,10 +355,12 @@ pub enum ConnectionService {
|
|||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
|
||||
pub enum ConnectionType {
|
||||
/// A connection through a token with an expiration time.
|
||||
/// A connection through a token which never expires.
|
||||
Token,
|
||||
/// <https://www.rfc-editor.org/rfc/rfc7636>
|
||||
PKCE,
|
||||
/// A connection with no stored authentication.
|
||||
None,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue