Debian Codegraph @

mail_settings_types.go

raw
1 package proton
2
3 import "github.com/ProtonMail/gluon/rfc822"
4
5 type MailSettings struct {
6 DisplayName string
7 Signature string
8 DraftMIMEType rfc822.MIMEType
9 AttachPublicKey Bool
10 Sign SignExternalMessages
11 PGPScheme EncryptionScheme
12 }
13
14 type SignExternalMessages int
15
16 const (
17 SignExternalMessagesDisabled SignExternalMessages = iota
18 SignExternalMessagesEnabled
19 )
20
21 type SetDisplayNameReq struct {
22 DisplayName string
23 }
24
25 type SetSignatureReq struct {
26 Signature string
27 }
28
29 type SetDraftMIMETypeReq struct {
30 MIMEType rfc822.MIMEType
31 }
32
33 type SetAttachPublicKeyReq struct {
34 AttachPublicKey Bool
35 }
36
37 type SetSignExternalMessagesReq struct {
38 Sign SignExternalMessages
39 }
40
41 type SetDefaultPGPSchemeReq struct {
42 PGPScheme EncryptionScheme
43 }