pub struct UpdateContextBody {
pub id: String,
pub name: Option<String>,
pub did: Option<String>,
pub description: Option<String>,
pub context_policy: Option<ContextPolicy>,
}Fields§
§id: String§name: Option<String>§did: Option<String>§description: Option<String>§context_policy: Option<ContextPolicy>Set this context’s policy (super-admin only). Omitted leaves it
unchanged; send ContextPolicy::unrestricted to clear constraints.
Trait Implementations§
Source§impl Clone for UpdateContextBody
impl Clone for UpdateContextBody
Source§fn clone(&self) -> UpdateContextBody
fn clone(&self) -> UpdateContextBody
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 UpdateContextBody
impl Debug for UpdateContextBody
Source§impl<'de> Deserialize<'de> for UpdateContextBody
impl<'de> Deserialize<'de> for UpdateContextBody
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 UpdateContextBody
impl RefUnwindSafe for UpdateContextBody
impl Send for UpdateContextBody
impl Sync for UpdateContextBody
impl Unpin for UpdateContextBody
impl UnsafeUnpin for UpdateContextBody
impl UnwindSafe for UpdateContextBody
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