pub struct Source {
pub client: &'static str,
pub scope: Scope,
pub project: Option<SourceProject>,
pub slot: Option<String>,
pub file: PathBuf,
pub value: NativeValue,
pub read_only: Option<ReadOnlyKind>,
pub def: Result<ImportedDef, CoreError>,
}Expand description
Where a foreign entry was found.
Fields§
§client: &'static str§scope: Scope§project: Option<SourceProject>The project of a project file.
slot: Option<String>Which of the client’s files in its scope, when it has several: the
profile name (omp profiles), else the file’s position (2, 3:
a packaged mirror, an editor variant or profile). None for the
first file.
file: PathBuf§value: NativeValueThe native entry.
read_only: Option<ReadOnlyKind>This account cannot write the file (SPEC 8.2 read_only_target):
the definition can be imported, but the entry is never overwritten
there.
def: Result<ImportedDef, CoreError>The entry as store fields, sensitive literals included (an import extracts them), or why it cannot be imported.
Implementations§
Source§impl Source
impl Source
Trait Implementations§
Auto Trait Implementations§
impl Forget for Source
impl Freeze for Sourcewhere
&'static str: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<NativeValue>: Freeze,
PhantomData<(String, NativeValue)>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Sourcewhere
&'static str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<NativeValue>: UnsafeUnpin,
PhantomData<(String, NativeValue)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for Sourcewhere
&'static str: UnwindSafe,
RawVecInner: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
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