pub struct EndpointRule {
pub method: String,
pub path: String,
}Expand description
An HTTP method+path access rule for reverse proxy endpoint filtering.
Used to restrict which API endpoints an agent can access through a
credential route. Patterns use / separated segments with wildcards:
*matches exactly one path segment**matches zero or more path segments
Fields§
§method: StringHTTP method to match (“GET”, “POST”, etc.) or “*” for any method.
path: StringURL path pattern with glob segments. Example: “/api/v4/projects/*/merge_requests/**”
Trait Implementations§
Source§impl Clone for EndpointRule
impl Clone for EndpointRule
Source§fn clone(&self) -> EndpointRule
fn clone(&self) -> EndpointRule
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 moreSource§impl Debug for EndpointRule
impl Debug for EndpointRule
Source§impl<'de> Deserialize<'de> for EndpointRule
impl<'de> Deserialize<'de> for EndpointRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EndpointRule
impl PartialEq for EndpointRule
Source§impl Serialize for EndpointRule
impl Serialize for EndpointRule
impl Eq for EndpointRule
impl StructuralPartialEq for EndpointRule
Auto Trait Implementations§
impl Freeze for EndpointRule
impl RefUnwindSafe for EndpointRule
impl Send for EndpointRule
impl Sync for EndpointRule
impl Unpin for EndpointRule
impl UnsafeUnpin for EndpointRule
impl UnwindSafe for EndpointRule
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.