pub struct SuppliedFile {
pub name: String,
pub sha256: String,
pub bytes: u64,
}Expand description
A file of a resource slot that a plugin run read, by name and content, never by path.
Fields§
§name: StringThe resource name the plugin read it by, <slot> or <slot>/<relative path>; at most
MAX_SUPPLIED_NAME_BYTES bytes.
sha256: StringSHA-256 of its bytes, as 64 lowercase hexadecimal digits.
bytes: u64Its length in bytes.
Trait Implementations§
Source§impl Clone for SuppliedFile
impl Clone for SuppliedFile
Source§impl Debug for SuppliedFile
impl Debug for SuppliedFile
Source§impl<'de> Deserialize<'de> for SuppliedFile
impl<'de> Deserialize<'de> for SuppliedFile
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 Eq for SuppliedFile
Source§impl PartialEq for SuppliedFile
impl PartialEq for SuppliedFile
Source§impl Serialize for SuppliedFile
impl Serialize for SuppliedFile
impl StructuralPartialEq for SuppliedFile
Auto Trait Implementations§
impl Forget for SuppliedFile
impl Freeze for SuppliedFile
impl Move for SuppliedFile
impl RefUnwindSafe for SuppliedFile
impl Send for SuppliedFile
impl Sync for SuppliedFile
impl Unpin for SuppliedFile
impl UnsafeUnpin for SuppliedFile
impl UnwindSafe for SuppliedFile
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