package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. id : string;
    (*

    The moment ID.

    *)
  2. kind : string;
    (*

    Identifies this resource as a moment.

    *)
  3. _object : ItemScope.t;
    (*

    The object on which the action was performed. Specifying this is equivalent with specifying "target". Note that responses from the server will use the "target" field instead for backward-compatibility with older clients.

    *)
  4. result : ItemScope.t;
    (*

    The object generated by performing the action on the object. For example, a user writes a review of a restaurant, the object is the restaurant and the result is the review.

    *)
  5. startDate : GapiDate.t;
    (*

    Time stamp of when the action occurred in RFC3339 format.

    *)
  6. target : ItemScope.t;
    (*

    The object on which the action was performed.

    *)
  7. _type : string;
    (*

    The schema.org type for the type of moment to write. For example, http://schema.org/AddAction. Note that responses from the server will use the Google schema type instead for backward-compatibility with older clients. For example, http://schemas.google.com/AddActivity.

    *)
}
val id : (t, string) GapiLens.t
val kind : (t, string) GapiLens.t
val _object : (t, ItemScope.t) GapiLens.t
val result : (t, ItemScope.t) GapiLens.t
val startDate : (t, GapiDate.t) GapiLens.t
val target : (t, ItemScope.t) GapiLens.t
val _type : (t, string) GapiLens.t
val empty : t
val render : t -> GapiJson.json_data_model list
val parse : t -> GapiJson.json_data_model -> t
val to_data_model : t -> GapiJson.json_data_model
val of_data_model : GapiJson.json_data_model -> t