pub struct AssetUpload {
pub sha256: String,
pub url: String,
}Expand description
What a hosted source uploaded for one asset of one record: the bytes’ SHA-256 and the URL it serves them at.
Fields§
§sha256: StringThe lowercase hex SHA-256 of the bytes uploaded.
url: StringWhere the destination serves them.
Trait Implementations§
Source§impl Clone for AssetUpload
impl Clone for AssetUpload
Source§impl Debug for AssetUpload
impl Debug for AssetUpload
Source§impl<'de> Deserialize<'de> for AssetUpload
impl<'de> Deserialize<'de> for AssetUpload
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 AssetUpload
Source§impl JsonSchema for AssetUpload
impl JsonSchema for AssetUpload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AssetUpload
impl PartialEq for AssetUpload
Source§impl Serialize for AssetUpload
impl Serialize for AssetUpload
impl StructuralPartialEq for AssetUpload
Auto Trait Implementations§
impl Freeze for AssetUpload
impl RefUnwindSafe for AssetUpload
impl Send for AssetUpload
impl Sync for AssetUpload
impl Unpin for AssetUpload
impl UnsafeUnpin for AssetUpload
impl UnwindSafe for AssetUpload
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