pub struct MetadataStore { /* private fields */ }Implementations§
Source§impl MetadataStore
impl MetadataStore
pub fn fields(&self) -> impl Iterator<Item = &FieldDesc>
Sourcepub fn query_slk_field(
&self,
field_name: &str,
object: &Object,
) -> Option<(&FieldDesc, Option<u32>)>
pub fn query_slk_field( &self, field_name: &str, object: &Object, ) -> Option<(&FieldDesc, Option<u32>)>
Queries an SLK field by it’s name and target object. The object is necessary because the same field name can resolve to different fields depending on the object.
Sourcepub fn query_profile_field(
&self,
field_name: &str,
object: &Object,
index: i8,
) -> Option<(&FieldDesc, Option<u32>)>
pub fn query_profile_field( &self, field_name: &str, object: &Object, index: i8, ) -> Option<(&FieldDesc, Option<u32>)>
Queries a Profile field by it’s name and target object. The object is necessary because the same field name can resolve to different fields depending on the object.
pub fn query_object_field( &self, field_id: ObjectId, object: &Object, ) -> Option<&FieldDesc>
Sourcepub fn query_all_object_fields(
&self,
object: &Object,
) -> impl Iterator<Item = &FieldDesc>
pub fn query_all_object_fields( &self, object: &Object, ) -> impl Iterator<Item = &FieldDesc>
Will return an iterator of all fields available for this object, irrespective of which fields exist on the object itself.
Sourcepub fn query_lua_field(
&self,
object: &Object,
full_name: &str,
) -> Option<(&FieldDesc, Option<u32>)>
pub fn query_lua_field( &self, object: &Object, full_name: &str, ) -> Option<(&FieldDesc, Option<u32>)>
First tries to fetch a Profile/Func field in the format of
<field_name>
pub fn field_by_id(&self, id: ObjectId) -> Option<&FieldDesc>
Trait Implementations§
Source§impl Debug for MetadataStore
impl Debug for MetadataStore
Source§impl Default for MetadataStore
impl Default for MetadataStore
Source§fn default() -> MetadataStore
fn default() -> MetadataStore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetadataStore
impl<'de> Deserialize<'de> for MetadataStore
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MetadataStore
impl RefUnwindSafe for MetadataStore
impl Send for MetadataStore
impl Sync for MetadataStore
impl Unpin for MetadataStore
impl UnsafeUnpin for MetadataStore
impl UnwindSafe for MetadataStore
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