pub struct EndpointPolicy {
pub method: String,
pub path: String,
pub required_permissions: Vec<String>,
}Expand description
Declarative per-endpoint access policy (existing v1 model, preserved verbatim).
Fields§
§method: String§path: String§required_permissions: Vec<String>Trait Implementations§
Source§impl Clone for EndpointPolicy
impl Clone for EndpointPolicy
Source§fn clone(&self) -> EndpointPolicy
fn clone(&self) -> EndpointPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EndpointPolicy
impl Debug for EndpointPolicy
Source§impl<'de> Deserialize<'de> for EndpointPolicy
impl<'de> Deserialize<'de> for EndpointPolicy
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
Auto Trait Implementations§
impl Freeze for EndpointPolicy
impl RefUnwindSafe for EndpointPolicy
impl Send for EndpointPolicy
impl Sync for EndpointPolicy
impl Unpin for EndpointPolicy
impl UnsafeUnpin for EndpointPolicy
impl UnwindSafe for EndpointPolicy
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