[][src]Trait nanowrimo::data::ObjectInfo

pub trait ObjectInfo {
    pub fn kind(&self) -> NanoKind;
pub fn id(&self) -> u64;
pub fn relationships(&self) -> &Option<RelationInfo>;
pub fn links(&self) -> &LinkInfo; }

A trait for all types that represent an 'Object' in the Nano API. See Object for the most general form of this.

Required methods

pub fn kind(&self) -> NanoKind[src]

Retrive the kind of this Object

pub fn id(&self) -> u64[src]

Retrieve the ID of this object

pub fn relationships(&self) -> &Option<RelationInfo>[src]

Get the relationships of this Object, if it has any

Get the links for this Object, of which there should always be at least a link for self

Loading content...

Implementors

impl ObjectInfo for Object[src]

impl ObjectInfo for BadgeObject[src]

impl ObjectInfo for ChallengeObject[src]

impl ObjectInfo for FavoriteAuthorObject[src]

impl ObjectInfo for FavoriteBookObject[src]

impl ObjectInfo for GenreObject[src]

impl ObjectInfo for GroupExternalLinkObject[src]

impl ObjectInfo for GroupObject[src]

impl ObjectInfo for GroupUserObject[src]

impl ObjectInfo for LocationGroupObject[src]

impl ObjectInfo for LocationObject[src]

impl ObjectInfo for NanoMessageObject[src]

impl ObjectInfo for NotificationObject[src]

impl ObjectInfo for PageObject[src]

impl ObjectInfo for PostObject[src]

impl ObjectInfo for ProjectChallengeObject[src]

impl ObjectInfo for ProjectObject[src]

impl ObjectInfo for ProjectSessionObject[src]

impl ObjectInfo for StopWatchObject[src]

impl ObjectInfo for TimerObject[src]

impl ObjectInfo for UserBadgeObject[src]

impl ObjectInfo for UserObject[src]

Loading content...