Struct google_mirror1::TimelineItem [] [src]

pub struct TimelineItem {
    pub in_reply_to: Option<String>,
    pub updated: Option<String>,
    pub attachments: Option<Vec<Attachment>>,
    pub display_time: Option<String>,
    pub creator: Option<Contact>,
    pub text: Option<String>,
    pub menu_items: Option<Vec<MenuItem>>,
    pub is_bundle_cover: Option<bool>,
    pub self_link: Option<String>,
    pub id: Option<String>,
    pub is_deleted: Option<bool>,
    pub bundle_id: Option<String>,
    pub kind: Option<String>,
    pub recipients: Option<Vec<Contact>>,
    pub is_pinned: Option<bool>,
    pub title: Option<String>,
    pub notification: Option<NotificationConfig>,
    pub created: Option<String>,
    pub html: Option<String>,
    pub speakable_text: Option<String>,
    pub etag: Option<String>,
    pub location: Option<Location>,
    pub pin_score: Option<i32>,
    pub speakable_type: Option<String>,
    pub canonical_url: Option<String>,
    pub source_item_id: Option<String>,
}

Each item in the user's timeline is represented as a TimelineItem JSON structure, described below.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

If this item was generated as a reply to another item, this field will be set to the ID of the item being replied to. This can be used to attach a reply to the appropriate conversation or post.

The time at which this item was last modified, formatted according to RFC 3339.

A list of media attachments associated with this item. As a convenience, you can refer to attachments in your HTML payloads with the attachment or cid scheme. For example:
- attachment: where attachment_index is the 0-based index of this array. - cid: where attachment_id is the ID of the attachment.

The time that should be displayed when this item is viewed in the timeline, formatted according to RFC 3339. This user's timeline is sorted chronologically on display time, so this will also determine where the item is displayed in the timeline. If not set by the service, the display time defaults to the updated time.

The user or group that created this item.

Text content of this item.

A list of menu items that will be presented to the user when this item is selected in the timeline.

Whether this item is a bundle cover.

If an item is marked as a bundle cover, it will be the entry point to the bundle of items that have the same bundleId as that item. It will be shown only on the main timeline — not within the opened bundle.

On the main timeline, items that are shown are:
- Items that have isBundleCover set to true
- Items that do not have a bundleId In a bundle sub-timeline, items that are shown are:
- Items that have the bundleId in question AND isBundleCover set to false

A URL that can be used to retrieve this item.

The ID of the timeline item. This is unique within a user's timeline.

When true, indicates this item is deleted, and only the ID property is set.

The bundle ID for this item. Services can specify a bundleId to group many items together. They appear under a single top-level item on the device.

The type of resource. This is always mirror#timelineItem.

A list of users or groups that this item has been shared with.

When true, indicates this item is pinned, which means it's grouped alongside "active" items like navigation and hangouts, on the opposite side of the home screen from historical (non-pinned) timeline items. You can allow the user to toggle the value of this property with the TOGGLE_PINNED built-in menu item.

The title of this item.

Controls how notifications for this item are presented on the device. If this is missing, no notification will be generated.

The time at which this item was created, formatted according to RFC 3339.

HTML content for this item. If both text and html are provided for an item, the html will be rendered in the timeline. Allowed HTML elements - You can use these elements in your timeline cards.

  • Headers: h1, h2, h3, h4, h5, h6
  • Images: img
  • Lists: li, ol, ul
  • HTML5 semantics: article, aside, details, figure, figcaption, footer, header, nav, section, summary, time
  • Structural: blockquote, br, div, hr, p, span
  • Style: b, big, center, em, i, u, s, small, strike, strong, style, sub, sup
  • Tables: table, tbody, td, tfoot, th, thead, tr
    Blocked HTML elements: These elements and their contents are removed from HTML payloads.

  • Document headers: head, title

  • Embeds: audio, embed, object, source, video

  • Frames: frame, frameset

  • Scripting: applet, script
    Other elements: Any elements that aren't listed are removed, but their contents are preserved.

The speakable version of the content of this item. Along with the READ_ALOUD menu item, use this field to provide text that would be clearer when read aloud, or to provide extended information to what is displayed visually on Glass.

Glassware should also specify the speakableType field, which will be spoken before this text in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.

ETag for this item.

The geographic location associated with this item.

For pinned items, this determines the order in which the item is displayed in the timeline, with a higher score appearing closer to the clock. Note: setting this field is currently not supported.

A speakable description of the type of this item. This will be announced to the user prior to reading the content of the item in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.

This should be a short, simple noun phrase such as "Email", "Text message", or "Daily Planet News Update".

Glassware are encouraged to populate this field for every timeline item, even if the item does not contain speakableText or text so that the user can learn the type of the item without looking at the screen.

A canonical URL pointing to the canonical/high quality version of the data represented by the timeline item.

Opaque string you can use to map a timeline item to data in your own service.

Trait Implementations

impl Default for TimelineItem
[src]

[src]

Returns the "default value" for a type. Read more

impl Clone for TimelineItem
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for TimelineItem
[src]

[src]

Formats the value using the given formatter.

impl RequestValue for TimelineItem
[src]

impl ResponseResult for TimelineItem
[src]