pub struct AgentFileDetection {
pub file_path: Option<PathBuf>,
pub file_type: String,
pub has_blurb: bool,
pub has_legacy_blurb: bool,
pub blurb_version: u32,
pub content: String,
pub read_error: bool,
}Expand description
Result of detecting an agent config file.
Fields§
§file_path: Option<PathBuf>§file_type: String§has_blurb: bool§has_legacy_blurb: bool§blurb_version: u32§content: String§read_error: boolTrue when the file exists but could not be read (permissions, encoding).
Implementations§
Source§impl AgentFileDetection
impl AgentFileDetection
pub fn found(&self) -> bool
pub fn needs_blurb(&self) -> bool
pub fn needs_upgrade(&self) -> bool
Trait Implementations§
Source§impl Clone for AgentFileDetection
impl Clone for AgentFileDetection
Source§fn clone(&self) -> AgentFileDetection
fn clone(&self) -> AgentFileDetection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentFileDetection
impl Debug for AgentFileDetection
Source§impl Default for AgentFileDetection
impl Default for AgentFileDetection
Source§fn default() -> AgentFileDetection
fn default() -> AgentFileDetection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentFileDetection
impl RefUnwindSafe for AgentFileDetection
impl Send for AgentFileDetection
impl Sync for AgentFileDetection
impl Unpin for AgentFileDetection
impl UnsafeUnpin for AgentFileDetection
impl UnwindSafe for AgentFileDetection
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