pub struct RequestEntry {
pub id: String,
pub host: String,
pub allow: Vec<String>,
pub deny: Vec<String>,
pub hook_only: bool,
}Expand description
One requests: entry: one host’s request rules.
Fields§
§id: StringStable identifier: lowercase letters, digits and -. Named in the
reason of every refusal.
host: StringThe one host (a lowercase DNS name, no address, port or pattern) whose requests these rules decide.
allow: Vec<String>Requests that may be sent, METHOD /path each; empty, every request
deny does not name. Only the person’s own policy may list them.
deny: Vec<String>Requests that are refused, whatever allow or a secret’s rules say.
hook_only: boolDecided by the hook only: the proxy neither terminates the host for this entry nor refuses a session that cannot be terminated.
Trait Implementations§
Source§impl Clone for RequestEntry
impl Clone for RequestEntry
Source§impl Debug for RequestEntry
impl Debug for RequestEntry
Source§impl<'de> Deserialize<'de> for RequestEntry
impl<'de> Deserialize<'de> for RequestEntry
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
impl Eq for RequestEntry
Source§impl PartialEq for RequestEntry
impl PartialEq for RequestEntry
Source§impl Serialize for RequestEntry
impl Serialize for RequestEntry
impl StructuralPartialEq for RequestEntry
Auto Trait Implementations§
impl Forget for RequestEntry
impl Freeze for RequestEntry
impl Move for RequestEntry
impl RefUnwindSafe for RequestEntry
impl Send for RequestEntry
impl Sync for RequestEntry
impl Unpin for RequestEntry
impl UnsafeUnpin for RequestEntry
impl UnwindSafe for RequestEntry
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