pub struct AssetWrite {
pub assets: Vec<AssetPayload>,
pub recorded_assets: Option<AssetUploads>,
}Expand description
The assets a create or an update of one task or document carries.
Over the out-of-process protocol its two members sit in the write’s params beside
write — docs/plugin-protocol.md §4.9 — and in process it is the argument the asset
writes of TaskSource take beside the record’s own write. One type for
both, so the two cannot disagree.
Fields§
§assets: Vec<AssetPayload>One payload per asset the record’s content references, in the order it first references them — the record’s whole asset set once the write lands, so an asset the destination holds and this does not name is removed.
recorded_assets: Option<AssetUploads>The destination record’s existing MetadataKey::ASSETS_KEY, when it has one.
Trait Implementations§
Source§impl Clone for AssetWrite
impl Clone for AssetWrite
Source§impl Debug for AssetWrite
impl Debug for AssetWrite
Source§impl Default for AssetWrite
impl Default for AssetWrite
Source§impl<'de> Deserialize<'de> for AssetWrite
impl<'de> Deserialize<'de> for AssetWrite
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 AssetWrite
Source§impl JsonSchema for AssetWrite
impl JsonSchema for AssetWrite
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 AssetWrite
impl PartialEq for AssetWrite
Source§impl Serialize for AssetWrite
impl Serialize for AssetWrite
impl StructuralPartialEq for AssetWrite
Auto Trait Implementations§
impl Freeze for AssetWrite
impl RefUnwindSafe for AssetWrite
impl Send for AssetWrite
impl Sync for AssetWrite
impl Unpin for AssetWrite
impl UnsafeUnpin for AssetWrite
impl UnwindSafe for AssetWrite
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