pub struct ResourceType {
pub campus_id: Option<i64>,
pub name: String,
pub name_plural: String,
pub sort_key: i64,
pub id: i64,
pub meta: MetaDataEntityId,
pub name_plural_translated: String,
pub name_translated: String,
pub extra: Map<String, Value>,
}Expand description
Category used by Resource.resourceTypeId. Resource types are returned even when the reader has no visible resources of that type.
Fields§
§campus_id: Option<i64>Associated campus, or null for no campus assignment.
name: StringSingular label for one resource of this type.
name_plural: StringPlural label for resources of this type.
sort_key: i64Sort value for displaying resource types.
id: i64§meta: MetaDataEntityId§name_plural_translated: StringPlural label translated for the current language.
name_translated: StringSingular label translated for the current language.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for ResourceType
impl Clone for ResourceType
Source§impl Debug for ResourceType
impl Debug for ResourceType
Source§impl Default for ResourceType
impl Default for ResourceType
Source§impl<'de> Deserialize<'de> for ResourceType
impl<'de> Deserialize<'de> for ResourceType
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
Source§impl PartialEq for ResourceType
impl PartialEq for ResourceType
Source§impl Serialize for ResourceType
impl Serialize for ResourceType
impl StructuralPartialEq for ResourceType
Auto Trait Implementations§
impl Freeze for ResourceType
impl RefUnwindSafe for ResourceType
impl Send for ResourceType
impl Sync for ResourceType
impl Unpin for ResourceType
impl UnsafeUnpin for ResourceType
impl UnwindSafe for ResourceType
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