pub struct Resource {
pub workspace_id: Option<String>,
pub path: String,
pub description: Option<String>,
pub resource_type: String,
pub value: Option<Option<Value>>,
pub is_oauth: bool,
pub extra_perms: Option<HashMap<String, bool>>,
pub created_by: Option<String>,
pub edited_at: Option<String>,
pub labels: Option<Vec<String>>,
pub inherited_labels: Option<Vec<String>>,
pub ws_specific: Option<bool>,
}Fields§
§workspace_id: Option<String>§path: String§description: Option<String>§resource_type: String§value: Option<Option<Value>>§is_oauth: bool§extra_perms: Option<HashMap<String, bool>>§created_by: Option<String>§edited_at: Option<String>§labels: Option<Vec<String>>§inherited_labels: Option<Vec<String>>Labels inherited from the parent folder, computed at read time. Read-only — edit them on the folder.
ws_specific: Option<bool>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Resource
impl<'de> Deserialize<'de> for Resource
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
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Forget for Resource
impl Freeze for Resourcewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<(String, bool)>: Freeze,
PhantomData<String>: Freeze,
impl Move for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resourcewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<(String, bool)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Resourcewhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
HashMap<String, bool>: UnwindSafe,
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