pub struct ItemRef {
pub logical_path: String,
pub is_dir: bool,
pub content_hash: Option<String>,
pub media_type: Option<String>,
pub handle: String,
}Expand description
Metadata-only view of one side of a comparison. Carries logical identity
and content metadata but NOT a filesystem path — data access goes through
[DataAccess].
Fields§
§logical_path: String§is_dir: bool§content_hash: Option<String>§media_type: Option<String>§handle: StringOpaque identifier used by DataAccess implementations to locate data. Plugin authors should not create or interpret this value directly.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ItemRef
impl<'de> Deserialize<'de> for ItemRef
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 ItemRef
impl RefUnwindSafe for ItemRef
impl Send for ItemRef
impl Sync for ItemRef
impl Unpin for ItemRef
impl UnsafeUnpin for ItemRef
impl UnwindSafe for ItemRef
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