pub struct RefInfo {
pub path: Option<String>,
pub is_nested: bool,
pub document_path: DocumentPath,
pub ref_friendly_name: Option<String>,
}
Fields§
§path: Option<String>
Path of the reference to import in the destination file
is_nested: bool
True if the reference is nested in the same document
document_path: DocumentPath
File path of the document containing the reference
ref_friendly_name: Option<String>
Last part of the $ref value
Implementations§
Source§impl RefInfo
impl RefInfo
pub fn parse( doc_path: &DocumentPath, ref_value: &str, ) -> Result<Self, ResolverError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RefInfo
impl RefUnwindSafe for RefInfo
impl Send for RefInfo
impl Sync for RefInfo
impl Unpin for RefInfo
impl UnwindSafe for RefInfo
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