pub struct RetirementSiteInput {
pub path: PathBuf,
pub flag_name: String,
pub kind: RetirementFlagKind,
pub sdk_name: Option<String>,
pub line: u32,
pub col: u32,
pub role: FlagSiteRole,
pub guarded_dead_exports: Vec<String>,
pub facts: FlagSiteFacts,
pub literal: Option<String>,
pub unread: Option<String>,
}Expand description
One site of a flag, before the sites group into rows.
Fields§
§path: PathBufAbsolute path of the file.
flag_name: StringFlag identifier.
kind: RetirementFlagKindHow the flag was detected.
sdk_name: Option<String>SDK provider label, if known.
line: u321-based line.
col: u320-based byte column.
role: FlagSiteRoleWhat the site does with the flag.
guarded_dead_exports: Vec<String>Unused exports inside the block that the site guards.
facts: FlagSiteFactsFacts about the guard of the site.
literal: Option<String>The literal value of a const flag, on its definition site.
unread: Option<String>Why no code reads this definition, when that is known.
Implementations§
Source§impl RetirementSiteInput
impl RetirementSiteInput
Sourcepub fn from_feature_flag(flag: &FeatureFlag) -> Self
pub fn from_feature_flag(flag: &FeatureFlag) -> Self
The retirement site of a per-site flag finding, without guard facts.
Trait Implementations§
Source§impl Clone for RetirementSiteInput
impl Clone for RetirementSiteInput
Auto Trait Implementations§
impl Freeze for RetirementSiteInput
impl RefUnwindSafe for RetirementSiteInput
impl Send for RetirementSiteInput
impl Sync for RetirementSiteInput
impl Unpin for RetirementSiteInput
impl UnsafeUnpin for RetirementSiteInput
impl UnwindSafe for RetirementSiteInput
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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> ⓘ
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