pub struct Link {
pub url: Url,
pub spec_alias: Option<String>,
pub imports: Vec<Arc<Import>>,
pub purpose: Option<Purpose>,
}Fields§
§url: Url§spec_alias: Option<String>§imports: Vec<Arc<Import>>§purpose: Option<Purpose>Implementations§
Source§impl Link
impl Link
pub fn spec_name_in_schema(&self) -> &String
pub fn directive_name_in_schema(&self, name: &str) -> String
pub fn type_name_in_schema(&self, name: &str) -> String
pub fn from_directive_application( directive: &Directive, ) -> Result<Link, LinkError>
Trait Implementations§
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.