Structures

The following structures are available globally.

  • An error returned by arXiv API call.

    See more

    Declaration

    Swift

    public struct ArxivAPIError : Error
  • Represents a period from point in the past to now, defined in days,weeks, months or years.

    See more

    Declaration

    Swift

    public struct PastPeriodFromNow : Hashable, Codable
  • A single parsed entry element from arXiv API reponse.

    See more

    Declaration

    Swift

    public struct ArxivEntry : Hashable, Codable
    extension ArxivEntry: CustomStringConvertible
  • A parsed arXiv API reponse.

    See more

    Declaration

    Swift

    public struct ArxivResponse : Codable
    extension ArxivResponse: CustomStringConvertible
  • Specifies search criteria for arXiv request.

    ArxivQuery represents either a search term in specified article field, a date intervarl in which desired articles were published or updated or an arXive subject.

    Queries can be combined to construct arbitrarily complex queries by using all and any combinators. It is also possible to exclude articles matching a query by using excluding combinator.

    See more

    Declaration

    Swift

    public struct ArxivQuery : Codable
    extension ArxivQuery: CustomStringConvertible
    extension ArxivQuery: ArxivRequest
  • A custom parameter attribute that constructs query list from closures.

    See more

    Declaration

    Swift

    @resultBuilder
    public struct ArxivQueryBuilder
  • A list of arXiv article identifiers.

    The type conforms to ArxivRequest and can be used for fetching the articles with specified IDs.

    See more

    Declaration

    Swift

    public struct ArxivIdList : ArxivRequest
  • A full sppecification of an arXiv API request.

    See more

    Declaration

    Swift

    public struct ArxivRequestSpecification : Codable
    extension ArxivRequestSpecification: ArxivRequest
    extension ArxivRequestSpecification: CustomStringConvertible
  • Representation of a single searchable arXiv subject.

    Use Subject values with ArxivQuery.subject to retrieve articles belonging to the subject.

    All available subject constants are defined under ArxivSubjects namespace.

    See more

    Declaration

    Swift

    public struct ArxivSubject : Hashable, Codable, CustomStringConvertible