Vn

Struct Vn 

Source
pub struct Vn {
Show 21 fields pub id: u64, pub title: Option<String>, pub original: Option<String>, pub released: Option<String>, pub languages: Vec<String>, pub orig_lang: Vec<String>, pub platforms: Vec<String>, pub aliases: Option<String>, pub length: Option<u8>, pub description: Option<String>, pub links: Option<VnLinks>, pub image: Option<String>, pub image_flagging: Option<VnImageFlags>, pub anime: Vec<VnAnime>, pub relations: Vec<VnRelation>, pub tags: Vec<VnTag>, pub popularity: f32, pub rating: Option<f32>, pub votecount: Option<u64>, pub screens: Vec<VnScreen>, pub staff: Vec<VnStaff>,
}
Expand description

VN data representation. Returned by get vn

Fields§

§id: u64

Unique identifier of VN.

§title: Option<String>

Main title.

Provided when basic flag is specified.

§original: Option<String>

Title in original language.

Optionally provided when basic flag is specified.

§released: Option<String>

Date of the first release.

Optionally provided when basic flag is specified.

§languages: Vec<String>

Languages in which VN is available.

Provided when basic flag is specified. Can be empty array.

§orig_lang: Vec<String>

Languages of the first release.

Optionally provided when basic flag is specified. Can be empty array.

§platforms: Vec<String>

Platforms on which VN is available.

Optionally provided when basic flag is specified. Can be empty array.

§aliases: Option<String>

Aliases, separated by newline.

Provided when details flag is specified. Can be None.

§length: Option<u8>

Length of the VN. Between 1-5.

Provided when details flag is specified. Can be None.

§description: Option<String>

Description of the VN.

Provided when details flag is specified. Can be None.

§links: Option<VnLinks>

Links related to the VN.

Provided when details flag is specified.

§image: Option<String>

HTTP link to VN image.

Provided when details flag is specified. Can be None.

§image_flagging: Option<VnImageFlags>

Flags of the image

§anime: Vec<VnAnime>

List of anime related to the VN.

Provided when anime flag is specified.

§relations: Vec<VnRelation>

List of related VNs.

Provided when relations flag is specified.

§tags: Vec<VnTag>

List of VN’s tags

Provided when tags flag is specified.

§popularity: f32

Popularity from 0 to 100.

Provided when stats flag is specified.

§rating: Option<f32>

VN’s rating from 1 to 10.

Provided when stats flag is specified.

§votecount: Option<u64>

Number of votes

Provided when stats flag is specified.

§screens: Vec<VnScreen>

List of screenshots

Provided when screens flag is specified.

§staff: Vec<VnStaff>

List of Staff members.

Provided when staff flag is specified.

Trait Implementations§

Source§

impl Debug for Vn

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Vn

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Vn

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Vn

§

impl RefUnwindSafe for Vn

§

impl Send for Vn

§

impl Sync for Vn

§

impl Unpin for Vn

§

impl UnwindSafe for Vn

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,