#[non_exhaustive]pub struct MountedRepo {
pub url: String,
pub local_path: PathBuf,
pub indexed: bool,
}Expand description
Records a repository that was cloned and mounted during a session.
Stored in session state so that cloned repositories can be re-mounted automatically when a session is resumed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: StringRemote URL the repository was cloned from.
local_path: PathBufLocal path to the cloned repository on disk.
indexed: boolWhether the repository has been semantically indexed.
Implementations§
Trait Implementations§
Source§impl Clone for MountedRepo
impl Clone for MountedRepo
Source§fn clone(&self) -> MountedRepo
fn clone(&self) -> MountedRepo
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 moreSource§impl Debug for MountedRepo
impl Debug for MountedRepo
Source§impl<'de> Deserialize<'de> for MountedRepo
impl<'de> Deserialize<'de> for MountedRepo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MountedRepo
impl RefUnwindSafe for MountedRepo
impl Send for MountedRepo
impl Sync for MountedRepo
impl Unpin for MountedRepo
impl UnsafeUnpin for MountedRepo
impl UnwindSafe for MountedRepo
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