[][src]Struct misskey::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, Global>>,
    pub renote: Option<Box<Note, Global>>,
    pub via_mobile: bool,
    pub is_hidden: bool,
    pub local_only: bool,
    pub visibility: Visibility,
    pub mentions: Vec<Id<User>, Global>,
    pub visible_user_ids: Vec<Id<User>, Global>,
    pub file_ids: Vec<Id<DriveFile>, Global>,
    pub files: Vec<DriveFile, Global>,
    pub tags: Vec<Tag, Global>,
    pub poll: Option<Poll>,
    pub reactions: HashMap<Reaction, u64, RandomState>,
    pub emojis: Vec<NoteEmoji, Global>,
    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, Global>>renote: Option<Box<Note, Global>>via_mobile: boolis_hidden: boollocal_only: boolvisibility: Visibilitymentions: Vec<Id<User>, Global>visible_user_ids: Vec<Id<User>, Global>file_ids: Vec<Id<DriveFile>, Global>files: Vec<DriveFile, Global>tags: Vec<Tag, Global>poll: Option<Poll>reactions: HashMap<Reaction, u64, RandomState>emojis: Vec<NoteEmoji, Global>renote_count: u64replies_count: u64channel_id: Option<Id<Channel>>channel: Option<NoteChannel>

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]