pub trait Config: Config {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type RemoveOrigin: EnsureOrigin<Self::RuntimeOrigin>;
    type MaxOwnedDocs: Get<u32>;
    type MaxSharedFromDocs: Get<u32>;
    type MaxSharedToDocs: Get<u32>;
    type DocNameMinLen: Get<u32>;
    type DocNameMaxLen: Get<u32>;
    type DocDescMinLen: Get<u32>;
    type DocDescMaxLen: Get<u32>;
    type GroupNameMinLen: Get<u32>;
    type GroupNameMaxLen: Get<u32>;
    type MaxMemberGroups: Get<u32>;
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Required Associated Types§

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

source

type RemoveOrigin: EnsureOrigin<Self::RuntimeOrigin>

source

type MaxOwnedDocs: Get<u32>

Maximum number of confidential documents that a user can own

source

type MaxSharedFromDocs: Get<u32>

Maximum number of confidential documents that a user can share

source

type MaxSharedToDocs: Get<u32>

Maximum number of confidential documents that can be shared to a user

source

type DocNameMinLen: Get<u32>

Minimum length for a document name

source

type DocNameMaxLen: Get<u32>

Maximum length for a document name

source

type DocDescMinLen: Get<u32>

Minimum length for a document description

source

type DocDescMaxLen: Get<u32>

Maximum length for a document description

source

type GroupNameMinLen: Get<u32>

Minimum length for a groupName

source

type GroupNameMaxLen: Get<u32>

Maximum length for a groupName

source

type MaxMemberGroups: Get<u32>

Maximum groups a user can belong to

Implementors§