pub struct Readiness {
pub blockers: Vec<Dependency>,
pub warnings: Vec<Dependency>,
}Expand description
Result of the readiness check.
Fields§
§blockers: Vec<Dependency>§warnings: Vec<Dependency>Implementations§
Source§impl Readiness
impl Readiness
pub fn is_ready(&self) -> bool
Sourcepub fn redact(self, actor: &Actor) -> Self
pub fn redact(self, actor: &Actor) -> Self
Removes what the actor may not see: blockers on hidden items become placeholders that still block; warnings on hidden items (heuristic file-name matches, obsolete items) are dropped. Hidden depending revisions lose their label, and another open change the actor may not see is not named.
The check sorts by the item numbers of the depending revision and of the dependency, so a placeholder left in place would bound the hidden number between its visible neighbours. Rows of hidden depending revisions therefore go last (ordered by what the reader sees), and within each depending revision the hidden dependencies follow the visible ones.
Sourcepub fn addable_blockers(&self) -> Vec<Uuid>
pub fn addable_blockers(&self) -> Vec<Uuid>
Latest revisions of the blocking dependencies that can be added to the change order (each revision once).
Sourcepub fn blocker_summary(&self) -> String
pub fn blocker_summary(&self) -> String
One sentence for an error message, e.g. when submitting.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Readiness
impl RefUnwindSafe for Readiness
impl Send for Readiness
impl Sync for Readiness
impl Unpin for Readiness
impl UnsafeUnpin for Readiness
impl UnwindSafe for Readiness
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.