pub struct Rel {
pub source_name: String,
pub target_name: String,
pub rel_type: String,
pub source_urls: Vec<String>,
pub fields: Vec<(String, String)>,
pub id: Option<String>,
pub line: usize,
}Expand description
A parsed relationship.
Fields§
§source_name: String§target_name: String§rel_type: String§source_urls: Vec<String>§fields: Vec<(String, String)>§id: Option<String>Stored NULID from - id: field (None if not yet generated).
line: usizeLine number (1-indexed) in the original file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rel
impl RefUnwindSafe for Rel
impl Send for Rel
impl Sync for Rel
impl Unpin for Rel
impl UnsafeUnpin for Rel
impl UnwindSafe for Rel
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