Struct napchart::RemoteNapchart [−][src]
pub struct RemoteNapchart { pub chartid: String, pub title: Option<String>, pub description: Option<String>, pub username: Option<String>, pub last_updated: DateTime<Utc>, pub is_snapshot: bool, pub is_private: bool, pub chart: Napchart, // some fields omitted }
Expand description
A napchart downloaded from https://napchart.com. Includes extra metadata around the internal Napchart, such as the chart’s ID, title, author, update time, etc.
Fields
chartid: String
The chart’s ID code. Chartids are unique. Should be in one of the following formats:
- 5 chars (
napchart.com/xxxxx
) (deprecated) - 6 chars (
napchart.com/xxxxxx
) (deprecated) - 9 chars snapshot (
napchart.com/snapshot/xxxxxxxxx
) - 9 chars user chart (
napchart.com/:user/xxxxxxxxx
) - 9 chars user chart with title (
napchart.com/:user/Some-title-here-xxxxxxxxx
)
title: Option<String>
The title of the napchart, or None if unset
description: Option<String>
The description of the napchart, or None if unset
username: Option<String>
The user that saved this napchart, or None if anonymous
last_updated: DateTime<Utc>
The time that this chart was last saved
is_snapshot: bool
True if this napchart was saved as a snapshot
is_private: bool
True if this napchart is private
chart: Napchart
The chart itself
Implementations
True if both RemoteNapcharts are the same, ignoring chartid, last_updated, and public_link. Used by the api tests to make sure BlockingClient and AsyncClient are doing the same thing.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.