pub struct ContentInfo {
pub content_id: u32,
pub guid: GUID,
pub content_type: ContentType,
}Expand description
Content information.
The contained GUID is interpreted as a Windows GUID.
See https://learn.microsoft.com/en-us/windows/win32/api/guiddef/ns-guiddef-guid for more information.
Some GW2 community projects misinterpret the memory layout of the GUID as bytes rather than a Windows GUID.
When comparing or interfacing with such projects, you can use GuidExt::misinterpret on the GUID.
Fields§
§content_id: u32Id of the content (volatile, depends on game build).
guid: GUIDPersistent content GUID.
content_type: ContentTypeContent type.
Implementations§
Source§impl ContentInfo
impl ContentInfo
Sourcepub fn guid_string(&self) -> String
pub fn guid_string(&self) -> String
Formats the contained GUID as String.
Sourcepub fn is_species(&self) -> bool
pub fn is_species(&self) -> bool
Whether the content is a species.
Trait Implementations§
Source§impl Clone for ContentInfo
impl Clone for ContentInfo
Source§fn clone(&self) -> ContentInfo
fn clone(&self) -> ContentInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentInfo
impl Debug for ContentInfo
Source§impl<'de> Deserialize<'de> for ContentInfo
impl<'de> Deserialize<'de> for ContentInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Extract for ContentInfo
impl Extract for ContentInfo
Source§impl Serialize for ContentInfo
impl Serialize for ContentInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryExtract for ContentInfo
impl TryExtract for ContentInfo
Auto Trait Implementations§
impl Freeze for ContentInfo
impl RefUnwindSafe for ContentInfo
impl Send for ContentInfo
impl Sync for ContentInfo
impl Unpin for ContentInfo
impl UnwindSafe for ContentInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more