pub struct DeletionTargets { /* private fields */ }Expand description
The objects to delete in deletion order: every dependent before the object it depends on.
Implementations§
Source§impl DeletionTargets
impl DeletionTargets
Sourcepub fn collect(
graph: &DependencyGraph,
originals: &[ObjectAddress],
describe: Describe<'_>,
) -> Result<Self, SQLError>
pub fn collect( graph: &DependencyGraph, originals: &[ObjectAddress], describe: Describe<'_>, ) -> Result<Self, SQLError>
performMultipleDeletions’ search: the named objects and everything that depends on them. An object that is internal to another named object is deleted with its owner; one that is internal to an unnamed object reports 2BP01 as findDependentObjects does.
pub fn targets(&self) -> &[DeletionTarget]
Sourcepub fn report(
&self,
cascade: bool,
original: Option<ObjectAddress>,
describe: Describe<'_>,
) -> Result<Option<CascadeNotice>, SQLError>
pub fn report( &self, cascade: bool, original: Option<ObjectAddress>, describe: Describe<'_>, ) -> Result<Option<CascadeNotice>, SQLError>
reportDependentObjects: reject a RESTRICT drop that would delete an object reached through a normal dependency, or describe what a cascading drop deletes. original names the single object the command drops.
Trait Implementations§
Source§impl Clone for DeletionTargets
impl Clone for DeletionTargets
Source§impl Debug for DeletionTargets
impl Debug for DeletionTargets
Auto Trait Implementations§
impl Freeze for DeletionTargets
impl RefUnwindSafe for DeletionTargets
impl Send for DeletionTargets
impl Sync for DeletionTargets
impl Unpin for DeletionTargets
impl UnsafeUnpin for DeletionTargets
impl UnwindSafe for DeletionTargets
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more