pub struct GraphImport {
pub alias: Option<String>,
}Expand description
Reserved metadata for a graph import.
The presence of an entry declares a dependency from the importing graph onto the imported graph. Additional metadata (aliasing, pinning, namespaces) can be added later without changing the key contract.
Fields§
§alias: Option<String>Optional import alias for UI and authoring ergonomics.
Trait Implementations§
Source§impl Clone for GraphImport
impl Clone for GraphImport
Source§fn clone(&self) -> GraphImport
fn clone(&self) -> GraphImport
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 GraphImport
impl Debug for GraphImport
Source§impl Default for GraphImport
impl Default for GraphImport
Source§fn default() -> GraphImport
fn default() -> GraphImport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GraphImport
impl<'de> Deserialize<'de> for GraphImport
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 GraphImport
impl RefUnwindSafe for GraphImport
impl Send for GraphImport
impl Sync for GraphImport
impl Unpin for GraphImport
impl UnsafeUnpin for GraphImport
impl UnwindSafe for GraphImport
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