pub struct ResourceTypeUpdate {
pub campus_id: Option<Option<i64>>,
pub name: String,
pub name_plural: String,
pub sort_key: i64,
pub extra: Map<String, Value>,
}Expand description
Complete resource-type input. The resource type ID is supplied in the path.
Fields§
§campus_id: Option<Option<i64>>Associated campus, or null for no campus assignment.
None leaves the field out, Some(None) sends null.
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.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for ResourceTypeUpdate
impl Clone for ResourceTypeUpdate
Source§impl Debug for ResourceTypeUpdate
impl Debug for ResourceTypeUpdate
Source§impl Default for ResourceTypeUpdate
impl Default for ResourceTypeUpdate
Source§impl<'de> Deserialize<'de> for ResourceTypeUpdate
impl<'de> Deserialize<'de> for ResourceTypeUpdate
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 ResourceTypeUpdate
impl PartialEq for ResourceTypeUpdate
Source§impl Serialize for ResourceTypeUpdate
impl Serialize for ResourceTypeUpdate
impl StructuralPartialEq for ResourceTypeUpdate
Auto Trait Implementations§
impl Freeze for ResourceTypeUpdate
impl RefUnwindSafe for ResourceTypeUpdate
impl Send for ResourceTypeUpdate
impl Sync for ResourceTypeUpdate
impl Unpin for ResourceTypeUpdate
impl UnsafeUnpin for ResourceTypeUpdate
impl UnwindSafe for ResourceTypeUpdate
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