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

Formats the value using the given formatter. Read more

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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.