Struct BotPatterns
pub struct BotPatterns { /* private fields */ }Expand description
User-extensible bot-pattern set. Merges built-in DEFAULT_BOT_PATTERNS
with any patterns from a project-level .codelorebots file at the repo
root. File format mirrors .codeloreignore:
# Comments start with `#`
# One bot pattern per line; substring match in email or name
# (case-insensitive after lowercasing both sides).
our-deploy-bot
release-automationBlank lines and #-prefix comments are ignored.
Implementations§
§impl BotPatterns
impl BotPatterns
pub fn from_repo(repo_root: &Path) -> Self
pub fn from_repo(repo_root: &Path) -> Self
Read <repo_root>/.codelorebots if present, returning a BotPatterns
with the user additions parsed. Missing file → empty user set
(defaults still applied via Self::is_bot).
I/O errors other than NotFound are logged at warn level and a
default BotPatterns is returned — bot detection is best-effort.
Trait Implementations§
§impl Clone for BotPatterns
impl Clone for BotPatterns
§fn clone(&self) -> BotPatterns
fn clone(&self) -> BotPatterns
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for BotPatterns
impl Debug for BotPatterns
§impl Default for BotPatterns
impl Default for BotPatterns
§fn default() -> BotPatterns
fn default() -> BotPatterns
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BotPatterns
impl RefUnwindSafe for BotPatterns
impl Send for BotPatterns
impl Sync for BotPatterns
impl Unpin for BotPatterns
impl UnsafeUnpin for BotPatterns
impl UnwindSafe for BotPatterns
Blanket Implementations§
impl<T> Allocation for T
impl<T> Allocation for T
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
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,
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