pub enum Seg {
Lit(&'static str),
Param(&'static str),
ParamAction(&'static str, &'static str),
Rest(&'static str),
}Expand description
One path segment of an ingress pattern. Static tables, no matcher DSL: the full pattern language is exactly what the known APIs need.
Variants§
Lit(&'static str)
Literal segment: v1, files.
Param(&'static str)
Capture one segment: {id}.
ParamAction(&'static str, &'static str)
Gemini’s models/{model}:generateContent shape — a capture with a
literal :action suffix in the same segment.
Rest(&'static str)
Capture the whole remaining path (service-surface prefixes). Only valid as the final segment.
Trait Implementations§
impl Copy for Seg
impl Eq for Seg
impl StructuralPartialEq for Seg
Auto Trait Implementations§
impl Freeze for Seg
impl RefUnwindSafe for Seg
impl Send for Seg
impl Sync for Seg
impl Unpin for Seg
impl UnsafeUnpin for Seg
impl UnwindSafe for Seg
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