Module Values.PackageSummarySource

Details about a package, including its format, namespace, and name.

Sourcetype nonrec t = {
  1. format : PackageFormat.t option;
    (*

    The format of the package.

    *)
  2. namespace : PackageNamespace.t option;
    (*

    The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package version is its groupId. The namespace of an npm or Swift package version is its scope. The namespace of a generic package is its namespace. Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.

    *)
  3. package : PackageName.t option;
    (*

    The name of the package.

    *)
  4. originConfiguration : PackageOriginConfiguration.t option;
    (*

    A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.

    *)
}
Sourceval make : ?format:??? -> ?namespace:??? -> ?package:??? -> ?originConfiguration:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of PackageNamespace.t | `Structure of (string * [> `Structure of (string * [> `Enum of string ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t