[][src]Struct misskey_api::model::note::Note

pub struct Note {
    pub id: Id<Note>,
    pub created_at: DateTime<Utc>,
    pub text: Option<String>,
    pub cw: Option<String>,
    pub user_id: Id<User>,
    pub user: User,
    pub reply_id: Option<Id<Note>>,
    pub renote_id: Option<Id<Note>>,
    pub reply: Option<Box<Note>>,
    pub renote: Option<Box<Note>>,
    pub via_mobile: bool,
    pub is_hidden: bool,
    pub local_only: bool,
    pub visibility: Visibility,
    pub mentions: Vec<Id<User>>,
    pub visible_user_ids: Vec<Id<User>>,
    pub file_ids: Vec<Id<DriveFile>>,
    pub files: Vec<DriveFile>,
    pub tags: Vec<Tag>,
    pub poll: Option<Poll>,
    pub reactions: HashMap<Reaction, u64>,
    pub emojis: Vec<NoteEmoji>,
    pub renote_count: u64,
    pub replies_count: u64,
    pub channel_id: Option<Id<Channel>>,
    pub channel: Option<NoteChannel>,
}

Fields

id: Id<Note>created_at: DateTime<Utc>text: Option<String>cw: Option<String>user_id: Id<User>user: Userreply_id: Option<Id<Note>>renote_id: Option<Id<Note>>reply: Option<Box<Note>>renote: Option<Box<Note>>via_mobile: boolis_hidden: boollocal_only: boolvisibility: Visibilitymentions: Vec<Id<User>>visible_user_ids: Vec<Id<User>>file_ids: Vec<Id<DriveFile>>files: Vec<DriveFile>tags: Vec<Tag>poll: Option<Poll>reactions: HashMap<Reaction, u64>emojis: Vec<NoteEmoji>renote_count: u64replies_count: u64channel_id: Option<Id<Channel>>
This is supported on crate feature 12-47-0 only.
channel: Option<NoteChannel>
This is supported on crate feature 12-47-0 only.

Trait Implementations

impl Clone for Note[src]

impl Debug for Note[src]

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

impl Entity for Note[src]

impl PaginationItem for Note[src]

type Id = Id<Note>

The ID type.

impl Serialize for Note[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.