pub struct EditResource {
pub path: Option<String>,
pub description: Option<String>,
pub value: Option<Option<Value>>,
pub resource_type: Option<String>,
pub labels: Option<Vec<String>>,
pub ws_specific: Option<bool>,
pub preserve_on_behalf_of: Option<bool>,
}Fields§
§path: Option<String>The path to the resource
description: Option<String>The new description of the resource
value: Option<Option<Value>>§resource_type: Option<String>The new resource_type to be associated with the resource
labels: Option<Vec<String>>§ws_specific: Option<bool>§preserve_on_behalf_of: Option<bool>ai_agent only. Keep the identity value.on_behalf_of names (u/<username>, g/<group>) rather than the caller’s own. Honoured for admins and members of wm_deployers; otherwise every write of an agent sets it to the caller.
Implementations§
Source§impl EditResource
impl EditResource
pub fn new() -> EditResource
Trait Implementations§
Source§impl Clone for EditResource
impl Clone for EditResource
Source§impl Debug for EditResource
impl Debug for EditResource
Source§impl Default for EditResource
impl Default for EditResource
Source§impl<'de> Deserialize<'de> for EditResource
impl<'de> Deserialize<'de> for EditResource
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 EditResource
impl PartialEq for EditResource
Source§impl Serialize for EditResource
impl Serialize for EditResource
impl StructuralPartialEq for EditResource
Auto Trait Implementations§
impl Freeze for EditResource
impl RefUnwindSafe for EditResource
impl Send for EditResource
impl Sync for EditResource
impl Unpin for EditResource
impl UnsafeUnpin for EditResource
impl UnwindSafe for EditResource
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