[][src]Enum nanowrimo::data::Object

pub enum Object {
    Badge(BadgeObject),
    Challenge(ChallengeObject),
    FavoriteAuthor(FavoriteAuthorObject),
    FavoriteBook(FavoriteBookObject),
    Genre(GenreObject),
    Group(GroupObject),
    GroupExternalLink(GroupExternalLinkObject),
    Location(LocationObject),
    NanoMessage(NanoMessageObject),
    Notification(NotificationObject),
    Page(PageObject),
    Post(PostObject),
    Project(ProjectObject),
    ProjectSession(ProjectSessionObject),
    StopWatch(StopWatchObject),
    Timer(TimerObject),
    User(UserObject),
    GroupUser(GroupUserObject),
    LocationGroup(LocationGroupObject),
    ProjectChallenge(ProjectChallengeObject),
    UserBadge(UserBadgeObject),
}

A common type for all Nano API objects. Most useful when you're either not sure of an API type, or want to accept multiple types in your program. See ObjectInfo for the kind of things all these objects have in common

Variants

Challenge(ChallengeObject)
FavoriteAuthor(FavoriteAuthorObject)
FavoriteBook(FavoriteBookObject)
Location(LocationObject)
NanoMessage(NanoMessageObject)
Notification(NotificationObject)
Project(ProjectObject)
ProjectSession(ProjectSessionObject)
StopWatch(StopWatchObject)
GroupUser(GroupUserObject)
LocationGroup(LocationGroupObject)
ProjectChallenge(ProjectChallengeObject)
UserBadge(UserBadgeObject)

Implementations

impl Object[src]

pub fn unwrap_badge(&self) -> &BadgeObject[src]

Get this Object as kind Badge, or panic

impl Object[src]

pub fn unwrap_challenge(&self) -> &ChallengeObject[src]

Get this Object as kind Challenge, or panic

impl Object[src]

pub fn unwrap_favorite_author(&self) -> &FavoriteAuthorObject[src]

Get this Object as kind FavoriteAuthor, or panic

impl Object[src]

pub fn unwrap_favorite_book(&self) -> &FavoriteBookObject[src]

Get this Object as kind FavoriteBook, or panic

impl Object[src]

pub fn unwrap_genre(&self) -> &GenreObject[src]

Get this Object as kind Genre, or panic

impl Object[src]

pub fn unwrap_group(&self) -> &GroupObject[src]

Get this Object as kind Group, or panic

impl Object[src]

Get this Object as kind GroupExternalLink, or panic

impl Object[src]

pub fn unwrap_location(&self) -> &LocationObject[src]

Get this Object as kind Location, or panic

impl Object[src]

pub fn unwrap_nano_message(&self) -> &NanoMessageObject[src]

Get this Object as kind NanoMessage, or panic

impl Object[src]

pub fn unwrap_notification(&self) -> &NotificationObject[src]

Get this Object as kind Notification, or panic

impl Object[src]

pub fn unwrap_page(&self) -> &PageObject[src]

Get this Object as kind Page, or panic

impl Object[src]

pub fn unwrap_post(&self) -> &PostObject[src]

Get this Object as kind Post, or panic

impl Object[src]

pub fn unwrap_project(&self) -> &ProjectObject[src]

Get this Object as kind Project, or panic

impl Object[src]

pub fn unwrap_project_session(&self) -> &ProjectSessionObject[src]

Get this Object as kind ProjectSession, or panic

impl Object[src]

pub fn unwrap_stop_watch(&self) -> &StopWatchObject[src]

Get this Object as kind StopWatch, or panic

impl Object[src]

pub fn unwrap_timer(&self) -> &TimerObject[src]

Get this Object as kind Timer, or panic

impl Object[src]

pub fn unwrap_user(&self) -> &UserObject[src]

Get this Object as kind User, or panic

impl Object[src]

pub fn unwrap_group_user(&self) -> &GroupUserObject[src]

Get this Object as kind GroupUser, or panic

impl Object[src]

pub fn unwrap_location_group(&self) -> &LocationGroupObject[src]

Get this Object as kind LocationGroup, or panic

impl Object[src]

pub fn unwrap_project_challenge(&self) -> &ProjectChallengeObject[src]

Get this Object as kind ProjectChallenge, or panic

impl Object[src]

pub fn unwrap_user_badge(&self) -> &UserBadgeObject[src]

Get this Object as kind UserBadge, or panic

Trait Implementations

impl Debug for Object[src]

impl<'de> Deserialize<'de> for Object[src]

impl ObjectInfo for Object[src]

impl Serialize for Object[src]

Auto Trait Implementations

impl RefUnwindSafe for Object

impl Send for Object

impl Sync for Object

impl Unpin for Object

impl UnwindSafe for Object

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.