func decode()

in Sources/StructuredFieldValues/Decoder/BareItemDecoder.swift [81:90]


    func decode(_: String.Type) throws -> String {
        switch self.item {
        case .string(let string):
            return string
        case .token(let token):
            return token
        default:
            throw StructuredHeaderError.invalidTypeForItem
        }
    }