SwiftstructFoundation

struct Foundation.URL.Template

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 3

  1. fieldvar elements: [Foundation.URL.Template.Element]+0x0
  2. initinit(String) -> Foundation.URL.Template?
  3. varvar description: String { get }
struct Foundation.URL.Template {
    enum Element {
        case literal(Swift.String)
        case expression(Foundation.URL.Template.Expression)
    }
    class Global {
        let operatorRegex: _StringProcessing.Regex<(Swift.Substring, Swift.Substring?)>
        let separatorRegex: _StringProcessing.Regex<Swift.Substring>
        let elementRegex: _StringProcessing.Regex<(Swift.Substring, Swift.Substring, Swift.Substring?, Swift.Substring?)>
        let uriTemplateRegex: _StringProcessing.Regex<(Swift.Substring, Swift.Substring)>
    }
    struct InvalidExpression {
        var text: Swift.String
    }
    struct Expression {
        struct Element {
            var name: Foundation.URL.Template.VariableName
            var maximumLength: Swift.Int?
            var explode: Swift.Bool
        }
        enum Operator {
            case reserved
            case fragment
            case nameLabel
            case pathSegment
            case pathParameter
            case queryComponent
            case continuation
        }
        var operator: Foundation.URL.Template.Expression.Operator?
        var elements: [Foundation.URL.Template.Expression.Element]
    }
    struct Value {
        enum Underlying {
            case text(Swift.String)
            case list([Swift.String])
            case associativeList(CollectionsInternal.OrderedDictionary<Swift.String, Swift.String>)
        }
        let underlying: Foundation.URL.Template.Value.Underlying

        init(arrayLiteral: Swift.String...)
        init(stringLiteral: Swift.String)
        init(dictionaryLiteral: (Swift.String, Swift.String)...)

        var description: Swift.String {
            get
        }

        static func associativeList<A>(_: A) -> Foundation.URL.Template.Value where A: Swift.Sequence, A.Element == (key: Swift.String, value: Swift.String)
        static func list<A>(_: A) -> Foundation.URL.Template.Value where A: Swift.Sequence, A.Element == Swift.String
        static func text(_: Swift.String) -> Foundation.URL.Template.Value
    }
    struct VariableName {
        let key: Swift.String

        init(_: Swift.String)

        var description: Swift.String {
            get
        }
    }
    var elements: [Foundation.URL.Template.Element]

    init?(_: Swift.String)

    var description: Swift.String {
        get
    }
}