Skip to main content

PublishedFileDetails

Struct PublishedFileDetails 

Source
pub struct PublishedFileDetails {
Show 41 fields pub result: Option<u32>, pub publishedfileid: Option<u64>, pub creator: Option<u64>, pub creator_appid: Option<u32>, pub consumer_appid: Option<u32>, pub consumer_shortcutid: Option<u32>, pub filename: Option<String>, pub file_size: Option<u64>, pub preview_file_size: Option<u64>, pub file_url: Option<String>, pub preview_url: Option<String>, pub youtubevideoid: Option<String>, pub url: Option<String>, pub hcontent_file: Option<u64>, pub hcontent_preview: Option<u64>, pub title: Option<String>, pub file_description: Option<String>, pub short_description: Option<String>, pub time_created: Option<u32>, pub time_updated: Option<u32>, pub visibility: Option<u32>, pub flags: Option<u32>, pub workshop_file: Option<bool>, pub workshop_accepted: Option<bool>, pub banned: Option<bool>, pub ban_reason: Option<String>, pub banner: Option<u64>, pub can_be_deleted: Option<bool>, pub app_name: Option<String>, pub file_type: Option<u32>, pub can_subscribe: Option<bool>, pub subscriptions: Option<u32>, pub favorited: Option<u32>, pub followers: Option<u32>, pub lifetime_subscriptions: Option<u32>, pub lifetime_favorited: Option<u32>, pub lifetime_followers: Option<u32>, pub views: Option<u32>, pub tags: Vec<Tag>, pub kvtags: Vec<KvTag>, pub vote_data: Option<VoteData>,
}
Expand description

Published file details

Fields§

§result: Option<u32>§publishedfileid: Option<u64>§creator: Option<u64>§creator_appid: Option<u32>§consumer_appid: Option<u32>§consumer_shortcutid: Option<u32>§filename: Option<String>§file_size: Option<u64>§preview_file_size: Option<u64>§file_url: Option<String>§preview_url: Option<String>§youtubevideoid: Option<String>§url: Option<String>§hcontent_file: Option<u64>§hcontent_preview: Option<u64>§title: Option<String>§file_description: Option<String>§short_description: Option<String>§time_created: Option<u32>§time_updated: Option<u32>§visibility: Option<u32>§flags: Option<u32>§workshop_file: Option<bool>§workshop_accepted: Option<bool>§banned: Option<bool>§ban_reason: Option<String>§banner: Option<u64>§can_be_deleted: Option<bool>§app_name: Option<String>§file_type: Option<u32>§can_subscribe: Option<bool>§subscriptions: Option<u32>§favorited: Option<u32>§followers: Option<u32>§lifetime_subscriptions: Option<u32>§lifetime_favorited: Option<u32>§lifetime_followers: Option<u32>§views: Option<u32>§tags: Vec<Tag>§kvtags: Vec<KvTag>§vote_data: Option<VoteData>

Implementations§

Source§

impl PublishedFileDetails

Source

pub fn result(&self) -> u32

Returns the value of result, or the default value if result is unset.

Source

pub fn publishedfileid(&self) -> u64

Returns the value of publishedfileid, or the default value if publishedfileid is unset.

Source

pub fn creator(&self) -> u64

Returns the value of creator, or the default value if creator is unset.

Source

pub fn creator_appid(&self) -> u32

Returns the value of creator_appid, or the default value if creator_appid is unset.

Source

pub fn consumer_appid(&self) -> u32

Returns the value of consumer_appid, or the default value if consumer_appid is unset.

Source

pub fn consumer_shortcutid(&self) -> u32

Returns the value of consumer_shortcutid, or the default value if consumer_shortcutid is unset.

Source

pub fn filename(&self) -> &str

Returns the value of filename, or the default value if filename is unset.

Source

pub fn file_size(&self) -> u64

Returns the value of file_size, or the default value if file_size is unset.

Source

pub fn preview_file_size(&self) -> u64

Returns the value of preview_file_size, or the default value if preview_file_size is unset.

Source

pub fn file_url(&self) -> &str

Returns the value of file_url, or the default value if file_url is unset.

Source

pub fn preview_url(&self) -> &str

Returns the value of preview_url, or the default value if preview_url is unset.

Source

pub fn youtubevideoid(&self) -> &str

Returns the value of youtubevideoid, or the default value if youtubevideoid is unset.

Source

pub fn url(&self) -> &str

Returns the value of url, or the default value if url is unset.

Source

pub fn hcontent_file(&self) -> u64

Returns the value of hcontent_file, or the default value if hcontent_file is unset.

Source

pub fn hcontent_preview(&self) -> u64

Returns the value of hcontent_preview, or the default value if hcontent_preview is unset.

Source

pub fn title(&self) -> &str

Returns the value of title, or the default value if title is unset.

Source

pub fn file_description(&self) -> &str

Returns the value of file_description, or the default value if file_description is unset.

Source

pub fn short_description(&self) -> &str

Returns the value of short_description, or the default value if short_description is unset.

Source

pub fn time_created(&self) -> u32

Returns the value of time_created, or the default value if time_created is unset.

Source

pub fn time_updated(&self) -> u32

Returns the value of time_updated, or the default value if time_updated is unset.

Source

pub fn visibility(&self) -> u32

Returns the value of visibility, or the default value if visibility is unset.

Source

pub fn flags(&self) -> u32

Returns the value of flags, or the default value if flags is unset.

Source

pub fn workshop_file(&self) -> bool

Returns the value of workshop_file, or the default value if workshop_file is unset.

Source

pub fn workshop_accepted(&self) -> bool

Returns the value of workshop_accepted, or the default value if workshop_accepted is unset.

Source

pub fn banned(&self) -> bool

Returns the value of banned, or the default value if banned is unset.

Source

pub fn ban_reason(&self) -> &str

Returns the value of ban_reason, or the default value if ban_reason is unset.

Source

pub fn banner(&self) -> u64

Returns the value of banner, or the default value if banner is unset.

Source

pub fn can_be_deleted(&self) -> bool

Returns the value of can_be_deleted, or the default value if can_be_deleted is unset.

Source

pub fn app_name(&self) -> &str

Returns the value of app_name, or the default value if app_name is unset.

Source

pub fn file_type(&self) -> u32

Returns the value of file_type, or the default value if file_type is unset.

Source

pub fn can_subscribe(&self) -> bool

Returns the value of can_subscribe, or the default value if can_subscribe is unset.

Source

pub fn subscriptions(&self) -> u32

Returns the value of subscriptions, or the default value if subscriptions is unset.

Source

pub fn favorited(&self) -> u32

Returns the value of favorited, or the default value if favorited is unset.

Source

pub fn followers(&self) -> u32

Returns the value of followers, or the default value if followers is unset.

Source

pub fn lifetime_subscriptions(&self) -> u32

Returns the value of lifetime_subscriptions, or the default value if lifetime_subscriptions is unset.

Source

pub fn lifetime_favorited(&self) -> u32

Returns the value of lifetime_favorited, or the default value if lifetime_favorited is unset.

Source

pub fn lifetime_followers(&self) -> u32

Returns the value of lifetime_followers, or the default value if lifetime_followers is unset.

Source

pub fn views(&self) -> u32

Returns the value of views, or the default value if views is unset.

Trait Implementations§

Source§

impl Clone for PublishedFileDetails

Source§

fn clone(&self) -> PublishedFileDetails

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PublishedFileDetails

Source§

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

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

impl Default for PublishedFileDetails

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Message for PublishedFileDetails

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for PublishedFileDetails

Source§

fn eq(&self, other: &PublishedFileDetails) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for PublishedFileDetails

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.