pub struct Target {
pub client: &'static str,
pub scope: Scope,
pub os: Os,
pub file: PathBuf,
pub format: Format,
pub container: ContainerPath,
pub project: Option<PathBuf>,
pub profile: Option<String>,
pub skeleton: &'static str,
pub warnings: Vec<CoreError>,
}Expand description
One native file to write for a client in a scope.
Fields§
§client: &'static str§scope: Scope§os: Os§file: PathBuf§format: Format§container: ContainerPath§project: Option<PathBuf>The project folder, for project scopes.
profile: Option<String>The named profile this user file belongs to (omp); None for the
default profile and for clients without profiles.
skeleton: &'static strThe text of the file when it does not exist yet.
warnings: Vec<CoreError>Warnings attached to this target (for example msix_dual_write).
Implementations§
Source§impl Target
impl Target
Sourcepub fn container_keys(&self) -> Result<Vec<String>, CoreError>
pub fn container_keys(&self) -> Result<Vec<String>, CoreError>
The keys of the container entries go in.
Sourcepub fn new_document(&self) -> Document
pub fn new_document(&self) -> Document
The document to edit when Target::file does not exist: the
client’s skeleton (empty for most clients).
Trait Implementations§
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Forget for Target
impl Freeze for Target
impl Move for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Targetwhere
RawVecInner: Sync,
impl Unpin for Target
impl UnsafeUnpin for Targetwhere
&'static str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static [&'static str]: UnsafeUnpin,
PhantomData<CoreError>: UnsafeUnpin,
impl UnwindSafe for Target
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