[−][src]Enum nanowrimo::data::Object
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
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)
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]
pub fn unwrap_group_external_link(&self) -> &GroupExternalLinkObject
[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]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl ObjectInfo for Object
[src]
pub fn kind(&self) -> NanoKind
[src]
pub fn id(&self) -> u64
[src]
pub fn relationships(&self) -> &Option<RelationInfo>
[src]
pub fn links(&self) -> &LinkInfo
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,