pub struct ResourceGetResult {
pub project: String,
pub path: String,
pub content_kind: String,
pub content: Value,
}Expand description
ign resource get output model — the stable agent shape:
{project, path, content_kind, content} (a Binary get refuses
before this is built; content is the parsed JSON value or the
text as a JSON string).
Fields§
§project: StringThe project the resource lives in.
path: StringThe resource path.
content_kind: String“json” | “text” — the sniffed kind.
content: ValueThe content: parsed JSON (any shape) or the UTF-8 text.
Trait Implementations§
Source§impl Debug for ResourceGetResult
impl Debug for ResourceGetResult
Auto Trait Implementations§
impl Freeze for ResourceGetResult
impl RefUnwindSafe for ResourceGetResult
impl Send for ResourceGetResult
impl Sync for ResourceGetResult
impl Unpin for ResourceGetResult
impl UnsafeUnpin for ResourceGetResult
impl UnwindSafe for ResourceGetResult
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