Skip to main content

ContentType

Enum ContentType 

Source
#[repr(u32)]
pub enum ContentType {
Show 31 variants ArcadeGame = 851_968, AvatarAssetPack = 32_768, AvatarItem = 36_864, CacheFile = 262_144, CommunityGame = 33_554_432, GameDemo = 524_288, GameOnDemand = 28_672, GamerPicture = 131_072, GamerTitle = 655_360, GameTrailer = 786_432, GameVideo = 4_194_304, InstalledGame = 16_384, Installer = 720_896, IPTVPauseBuffer = 8_192, LicenseStore = 983_040, MarketPlaceContent = 2, Movie = 1_048_576, MusicVideo = 3_145_728, PodcastVideo = 5_242_880, Profile = 65_536, Publisher = 3, SavedGame = 1, StorageDownload = 327_680, Theme = 196_608, Video = 2_097_152, ViralVideo = 6_291_456, XboxDownload = 458_752, XboxOriginalGame = 20_480, XboxSavedGame = 393_216, Xbox360Title = 4_096, XNA = 917_504,
}

Variants§

§

ArcadeGame = 851_968

§

AvatarAssetPack = 32_768

§

AvatarItem = 36_864

§

CacheFile = 262_144

§

CommunityGame = 33_554_432

§

GameDemo = 524_288

§

GameOnDemand = 28_672

§

GamerPicture = 131_072

§

GamerTitle = 655_360

§

GameTrailer = 786_432

§

GameVideo = 4_194_304

§

InstalledGame = 16_384

§

Installer = 720_896

§

IPTVPauseBuffer = 8_192

§

LicenseStore = 983_040

§

MarketPlaceContent = 2

§

Movie = 1_048_576

§

MusicVideo = 3_145_728

§

PodcastVideo = 5_242_880

§

Profile = 65_536

§

Publisher = 3

§

SavedGame = 1

§

StorageDownload = 327_680

§

Theme = 196_608

§

Video = 2_097_152

§

ViralVideo = 6_291_456

§

XboxDownload = 458_752

§

XboxOriginalGame = 20_480

§

XboxSavedGame = 393_216

§

Xbox360Title = 4_096

§

XNA = 917_504

Trait Implementations§

Source§

impl Debug for ContentType

Source§

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

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

impl Serialize for ContentType

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
Source§

impl TryFrom<u32> for ContentType

Source§

type Error = TryFromPrimitiveError<ContentType>

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

fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for ContentType

Source§

const NAME: &'static str = "ContentType"

Source§

type Primitive = u32

Source§

fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>

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> 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> Same for T

Source§

type Output = T

Should always be Self
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.