pub struct HttpStatement<'a> {
pub sequence: u8,
pub paths: Vec<Cow<'a, str>>,
pub methods: Vec<RapidRecastHttpMethod>,
pub actions: Vec<RapidRecastAction<'a>>,
}Expand description
Allows for specifying parts of an HTTP statement
Fields§
§sequence: u8Protocol sequence, where the order is determined from CLI order
ex. rapidrecast --http host1:123,host1:234,host2:345
That declares 3 protocols, so sequence=2 means binding host2:345
paths: Vec<Cow<'a, str>>The paths to match on the HTTP protocol
methods: Vec<RapidRecastHttpMethod>The methods of access for this rule. GET, POST, DELETE, UPDATE
actions: Vec<RapidRecastAction<'a>>Actions that take effect once the protocol is triggered
Trait Implementations§
Source§impl<'a> Clone for HttpStatement<'a>
impl<'a> Clone for HttpStatement<'a>
Source§fn clone(&self) -> HttpStatement<'a>
fn clone(&self) -> HttpStatement<'a>
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<'a> Debug for HttpStatement<'a>
impl<'a> Debug for HttpStatement<'a>
Source§impl<'de, 'a> Deserialize<'de> for HttpStatement<'a>
impl<'de, 'a> Deserialize<'de> for HttpStatement<'a>
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<'a> PartialEq for HttpStatement<'a>
impl<'a> PartialEq for HttpStatement<'a>
Source§impl<'a> Serialize for HttpStatement<'a>
impl<'a> Serialize for HttpStatement<'a>
impl<'a> StructuralPartialEq for HttpStatement<'a>
Auto Trait Implementations§
impl<'a> Freeze for HttpStatement<'a>
impl<'a> RefUnwindSafe for HttpStatement<'a>
impl<'a> Send for HttpStatement<'a>
impl<'a> Sync for HttpStatement<'a>
impl<'a> Unpin for HttpStatement<'a>
impl<'a> UnwindSafe for HttpStatement<'a>
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