pub struct Resource {
pub uri: String,
pub name: String,
pub mime_type: String,
pub size: Option<u64>,
}Expand description
Small metadata link to binary/file data, kept out of state snapshots.
Fields§
§uri: StringOpaque application resource identifier.
name: StringFriendly name.
mime_type: StringContent media type.
size: Option<u64>Exact payload byte count if known.
Implementations§
Trait Implementations§
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Forget for Resource
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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