pub struct SetTemplate {
pub name: String,
pub guid: Option<String>,
pub definition: Option<String>,
pub name_aliases: Vec<LocalizedText>,
pub definition_aliases: Vec<LocalizedText>,
pub source: Option<TemplateSource>,
pub raw_applicability: Option<String>,
pub applicability: Vec<Applicability>,
pub kind: SetTemplateKind,
}Expand description
External PSD/QTO set template.
Fields§
§name: StringName as declared by the publication, e.g. Pset_WallCommon.
guid: Option<String>Publication GlobalId, absent when the source did not assign one.
definition: Option<String>Definition prose, absent when the publication omitted it.
name_aliases: Vec<LocalizedText>Localized alternates for name in other publication languages.
definition_aliases: Vec<LocalizedText>Localized alternates for definition in other publication languages.
source: Option<TemplateSource>Which source publication contributed this template, absent for synthesized or corrected templates with no direct source file.
raw_applicability: Option<String>Publication ApplicableTypeValue before normalization.
applicability: Vec<Applicability>Parsed entity/predefined-type selectors derived from raw_applicability.
kind: SetTemplateKindWhether this is a property set or quantity set, and its typed payload.
Implementations§
Source§impl SetTemplate
impl SetTemplate
Sourcepub fn is_property_set(&self) -> bool
pub fn is_property_set(&self) -> bool
True when kind is SetTemplateKind::Property.
Sourcepub fn is_quantity_set(&self) -> bool
pub fn is_quantity_set(&self) -> bool
True when kind is SetTemplateKind::Quantity.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for SetTemplate
impl<'__de, __Context> BorrowDecode<'__de, __Context> for SetTemplate
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for SetTemplate
impl Clone for SetTemplate
Source§fn clone(&self) -> SetTemplate
fn clone(&self) -> SetTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SetTemplate
impl Debug for SetTemplate
Source§impl<__Context> Decode<__Context> for SetTemplate
impl<__Context> Decode<__Context> for SetTemplate
Source§impl Encode for SetTemplate
impl Encode for SetTemplate
impl Eq for SetTemplate
Source§impl PartialEq for SetTemplate
impl PartialEq for SetTemplate
impl StructuralPartialEq for SetTemplate
Auto Trait Implementations§
impl Freeze for SetTemplate
impl RefUnwindSafe for SetTemplate
impl Send for SetTemplate
impl Sync for SetTemplate
impl Unpin for SetTemplate
impl UnsafeUnpin for SetTemplate
impl UnwindSafe for SetTemplate
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