Module Values.PackageDescriptionSource

Details about a package.

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

    A format that specifies the type 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. name : PackageName.t option;
    (*

    The name of the package.

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

    The package origin configuration for the package.

    *)
}
Sourceval make : ?format:??? -> ?namespace:??? -> ?name:??? -> ?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