SwiftstructSensitiveContentAnalysisML
struct SensitiveContentAnalysisML.BlocklistsConfig
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Decodable
- protocolSwift.Encodable
Members 4
- func
static load(url: Foundation.URL) throws -> SensitiveContentAnalysisML.BlocklistsConfig - field
let groups: [SensitiveContentAnalysisML.BlocklistsConfig.BlocklistGroupConfig]+0x0 - func
matchTypeForName(String) throws -> SensitiveContentAnalysisML.MultiwordGazetteer.MatchType - var
var containsUnknownEntries: Bool { get }
Header
struct BlocklistsConfig { enum TextAttribute { case personalized case child case textGuidedRevision case unknown } enum Label { case desecration case nationalityFlags case customWords case personalization case minor case fullDisallow case fullPersonalization case appleProducts case nationality case countries case drugs case unknown } struct BlocklistGroupConfig { enum CodingKeys { case label case blocklists case textAttributes } let label: SensitiveContentAnalysisML.BlocklistsConfig.Label let blocklists: [SensitiveContentAnalysisML.BlocklistsConfig.BlocklistConfig] let textAttributes: [SensitiveContentAnalysisML.BlocklistsConfig.TextAttribute] } enum CodingKeys { case groups } struct BlocklistNameNotFound { enum CodingKeys { case name } let name: Swift.String } struct BlocklistConfigLoadFailed { let argument: Swift.String let cause: any Swift.Error } struct BlocklistConfig { enum CodingKeys { case name case type } let name: Swift.String let type: SensitiveContentAnalysisML.MultiwordGazetteer.MatchType } let groups: [SensitiveContentAnalysisML.BlocklistsConfig.BlocklistGroupConfig] var containsUnknownEntries: Swift.Bool { get } func matchTypeForName(_: Swift.String) throws -> SensitiveContentAnalysisML.MultiwordGazetteer.MatchType static func load(url: Foundation.URL) throws -> SensitiveContentAnalysisML.BlocklistsConfig }