pub struct ListedResource {
pub address: ResourceAddress,
pub kind: Option<String>,
}Expand description
A record a listing names: where it is, and the kind the workspace’s store keeps it as. A document that is no record of the store (the workspace’s tree, a device’s settings) names no kind.
Fields§
§address: ResourceAddress§kind: Option<String>Implementations§
Source§impl ListedResource
impl ListedResource
Sourcepub fn document(address: ResourceAddress) -> Self
pub fn document(address: ResourceAddress) -> Self
address, a document that is no record of the workspace’s store.
Sourcepub fn read_listing(workspace: &str, app: &str, listing: &Value) -> Vec<Self>
pub fn read_listing(workspace: &str, app: &str, listing: &Value) -> Vec<Self>
The records a listing of workspace answered (answer_read), each of app where it
names none.
Trait Implementations§
Source§impl Clone for ListedResource
impl Clone for ListedResource
Source§impl Debug for ListedResource
impl Debug for ListedResource
impl Eq for ListedResource
Source§impl Hash for ListedResource
impl Hash for ListedResource
Source§impl PartialEq for ListedResource
impl PartialEq for ListedResource
impl StructuralPartialEq for ListedResource
Auto Trait Implementations§
impl Forget for ListedResource
impl Freeze for ListedResource
impl Move for ListedResource
impl RefUnwindSafe for ListedResource
impl Send for ListedResource
impl Sync for ListedResource
impl Unpin for ListedResource
impl UnsafeUnpin for ListedResource
impl UnwindSafe for ListedResource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more