pub struct LinkExtractor {
pub entity_id: Uuid,
pub entity_type: String,
pub link_definition: LinkDefinition,
pub direction: LinkDirection,
}Expand description
Extractor for link information from path
Automatically parses the path and resolves link definitions. Supports both forward and reverse navigation.
Fields§
§entity_id: Uuid§entity_type: String§link_definition: LinkDefinition§direction: LinkDirectionImplementations§
Source§impl LinkExtractor
impl LinkExtractor
Sourcepub fn from_path_and_registry(
path_parts: (String, Uuid, String),
registry: &LinkRouteRegistry,
config: &LinksConfig,
) -> Result<Self, ExtractorError>
pub fn from_path_and_registry( path_parts: (String, Uuid, String), registry: &LinkRouteRegistry, config: &LinksConfig, ) -> Result<Self, ExtractorError>
Parse a link route path
Expected format: /{entity_type}/{entity_id}/{route_name}
Example: /users/123.../cars-owned
Trait Implementations§
Source§impl Clone for LinkExtractor
impl Clone for LinkExtractor
Source§fn clone(&self) -> LinkExtractor
fn clone(&self) -> LinkExtractor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LinkExtractor
impl RefUnwindSafe for LinkExtractor
impl Send for LinkExtractor
impl Sync for LinkExtractor
impl Unpin for LinkExtractor
impl UnwindSafe for LinkExtractor
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