github.com/vnforks/kid/v5@v5.22.1-0.20200408055009-b89d99c65676/model/user_count.go (about)

     1  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
     2  // See LICENSE.txt for license information.
     3  
     4  package model
     5  
     6  // Options for counting users
     7  type UserCountOptions struct {
     8  	// Should include deleted users (of any type)
     9  	IncludeDeleted bool
    10  	// Exclude regular users
    11  	ExcludeRegularUsers bool
    12  	// Only include users on a specific branch. "" for any branch.
    13  	BranchId string
    14  	// Restrict to search in a list of branches and classes
    15  	ViewRestrictions *ViewUsersRestrictions
    16  }