pub struct Patch<T>where
T: Default,{
pub id: Identity,
pub update: T,
}Expand description
Wrapper around a patch update.
Fields§
§id: IdentityIdentity of resource to update.
update: TResource patch.
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Patch<T>where
T: Default + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Patch<T>where
T: Default + Deserialize<'de>,
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
Source§impl<T> EqIdentity for Patch<T>where
T: Default,
impl<T> EqIdentity for Patch<T>where
T: Default,
Source§impl From<FileMetadata> for Patch<PatchFile>
impl From<FileMetadata> for Patch<PatchFile>
Source§fn from(file: FileMetadata) -> Self
fn from(file: FileMetadata) -> Self
Converts to this type from the input type.
Source§impl From<Relationship> for Patch<PatchRelationship>
impl From<Relationship> for Patch<PatchRelationship>
Source§fn from(rel: Relationship) -> Self
fn from(rel: Relationship) -> Self
Converts to this type from the input type.
Source§impl From<TimeSeries> for Patch<PatchTimeSeries>
impl From<TimeSeries> for Patch<PatchTimeSeries>
Source§fn from(time_serie: TimeSeries) -> Patch<PatchTimeSeries>
fn from(time_serie: TimeSeries) -> Patch<PatchTimeSeries>
Converts to this type from the input type.
Source§impl IntoPatch<Patch<PatchAsset>> for Asset
impl IntoPatch<Patch<PatchAsset>> for Asset
Source§fn patch(self, options: &UpsertOptions) -> Patch<PatchAsset>
fn patch(self, options: &UpsertOptions) -> Patch<PatchAsset>
Convert self into a patch, optionally ignoring null values.
Source§impl IntoPatch<Patch<PatchDataSet>> for DataSet
impl IntoPatch<Patch<PatchDataSet>> for DataSet
Source§fn patch(self, options: &UpsertOptions) -> Patch<PatchDataSet>
fn patch(self, options: &UpsertOptions) -> Patch<PatchDataSet>
Convert self into a patch, optionally ignoring null values.
Source§impl IntoPatch<Patch<PatchEvent>> for Event
impl IntoPatch<Patch<PatchEvent>> for Event
Source§fn patch(self, options: &UpsertOptions) -> Patch<PatchEvent>
fn patch(self, options: &UpsertOptions) -> Patch<PatchEvent>
Convert self into a patch, optionally ignoring null values.
Source§impl IntoPatch<Patch<PatchExtPipe>> for ExtPipe
impl IntoPatch<Patch<PatchExtPipe>> for ExtPipe
Source§fn patch(self, options: &UpsertOptions) -> Patch<PatchExtPipe>
fn patch(self, options: &UpsertOptions) -> Patch<PatchExtPipe>
Convert self into a patch, optionally ignoring null values.
Source§impl IntoPatch<Patch<PatchRelationship>> for Relationship
impl IntoPatch<Patch<PatchRelationship>> for Relationship
Source§fn patch(self, options: &UpsertOptions) -> Patch<PatchRelationship>
fn patch(self, options: &UpsertOptions) -> Patch<PatchRelationship>
Convert self into a patch, optionally ignoring null values.
Source§impl IntoPatch<Patch<PatchSequence>> for Sequence
impl IntoPatch<Patch<PatchSequence>> for Sequence
Source§fn patch(self, options: &UpsertOptions) -> Patch<PatchSequence>
fn patch(self, options: &UpsertOptions) -> Patch<PatchSequence>
Convert self into a patch, optionally ignoring null values.
Source§impl IntoPatch<Patch<PatchTimeSeries>> for TimeSeries
impl IntoPatch<Patch<PatchTimeSeries>> for TimeSeries
Source§fn patch(self, options: &UpsertOptions) -> Patch<PatchTimeSeries>
fn patch(self, options: &UpsertOptions) -> Patch<PatchTimeSeries>
Convert self into a patch, optionally ignoring null values.
Source§impl Update<Patch<PatchAsset>, Asset> for AssetsResource
impl Update<Patch<PatchAsset>, Asset> for AssetsResource
Source§fn update(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update( &self, updates: &[TUpdate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources. Read more
Source§fn update_from<'a, T>(
&self,
updates: &'a [T],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update_from<'a, T>( &self, updates: &'a [T], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources by converting to the update from a different type. Read more
Source§fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
Update a list of resources, ignoring any that fail due to items missing in CDF. Read more
Source§impl Update<Patch<PatchDataSet>, DataSet> for DataSetsResource
impl Update<Patch<PatchDataSet>, DataSet> for DataSetsResource
Source§fn update(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update( &self, updates: &[TUpdate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources. Read more
Source§fn update_from<'a, T>(
&self,
updates: &'a [T],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update_from<'a, T>( &self, updates: &'a [T], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources by converting to the update from a different type. Read more
Source§fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
Update a list of resources, ignoring any that fail due to items missing in CDF. Read more
Source§impl Update<Patch<PatchEvent>, Event> for EventsResource
impl Update<Patch<PatchEvent>, Event> for EventsResource
Source§fn update(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update( &self, updates: &[TUpdate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources. Read more
Source§fn update_from<'a, T>(
&self,
updates: &'a [T],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update_from<'a, T>( &self, updates: &'a [T], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources by converting to the update from a different type. Read more
Source§fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
Update a list of resources, ignoring any that fail due to items missing in CDF. Read more
Source§impl Update<Patch<PatchExtPipe>, ExtPipe> for ExtPipesResource
impl Update<Patch<PatchExtPipe>, ExtPipe> for ExtPipesResource
Source§fn update(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update( &self, updates: &[TUpdate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources. Read more
Source§fn update_from<'a, T>(
&self,
updates: &'a [T],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update_from<'a, T>( &self, updates: &'a [T], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources by converting to the update from a different type. Read more
Source§fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
Update a list of resources, ignoring any that fail due to items missing in CDF. Read more
Source§impl Update<Patch<PatchFile>, FileMetadata> for Files
impl Update<Patch<PatchFile>, FileMetadata> for Files
Source§fn update(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update( &self, updates: &[TUpdate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources. Read more
Source§fn update_from<'a, T>(
&self,
updates: &'a [T],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update_from<'a, T>( &self, updates: &'a [T], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources by converting to the update from a different type. Read more
Source§fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
Update a list of resources, ignoring any that fail due to items missing in CDF. Read more
Source§impl Update<Patch<PatchRelationship>, Relationship> for RelationshipsResource
impl Update<Patch<PatchRelationship>, Relationship> for RelationshipsResource
Source§fn update(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update( &self, updates: &[TUpdate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources. Read more
Source§fn update_from<'a, T>(
&self,
updates: &'a [T],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update_from<'a, T>( &self, updates: &'a [T], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources by converting to the update from a different type. Read more
Source§fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
Update a list of resources, ignoring any that fail due to items missing in CDF. Read more
Source§impl Update<Patch<PatchSequence>, Sequence> for SequencesResource
impl Update<Patch<PatchSequence>, Sequence> for SequencesResource
Source§fn update(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update( &self, updates: &[TUpdate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources. Read more
Source§fn update_from<'a, T>(
&self,
updates: &'a [T],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update_from<'a, T>( &self, updates: &'a [T], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources by converting to the update from a different type. Read more
Source§fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
Update a list of resources, ignoring any that fail due to items missing in CDF. Read more
Source§impl Update<Patch<PatchTimeSeries>, TimeSeries> for TimeSeriesResource
impl Update<Patch<PatchTimeSeries>, TimeSeries> for TimeSeriesResource
Source§fn update(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update( &self, updates: &[TUpdate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources. Read more
Source§fn update_from<'a, T>(
&self,
updates: &'a [T],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update_from<'a, T>( &self, updates: &'a [T], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources by converting to the update from a different type. Read more
Source§fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
Update a list of resources, ignoring any that fail due to items missing in CDF. Read more
Auto Trait Implementations§
impl<T> Freeze for Patch<T>where
T: Freeze,
impl<T> RefUnwindSafe for Patch<T>where
T: RefUnwindSafe,
impl<T> Send for Patch<T>where
T: Send,
impl<T> Sync for Patch<T>where
T: Sync,
impl<T> Unpin for Patch<T>where
T: Unpin,
impl<T> UnwindSafe for Patch<T>where
T: UnwindSafe,
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