Struct routinator::validity::RequestList
source · pub struct RequestList { /* private fields */ }
Expand description
A list of requests for route validity checks.
This type is intended to be used for deserialization of such a list from a file.
Implementations§
source§impl RequestList
impl RequestList
sourcepub fn from_plain_reader<R: BufRead>(reader: R) -> Result<Self, Error>
pub fn from_plain_reader<R: BufRead>(reader: R) -> Result<Self, Error>
Loads the request list from a plain text reader.
sourcepub fn from_json_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
pub fn from_json_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Loads the request list from a json-formatted reader.
sourcepub fn validity<'a>(
&self,
snapshot: &'a PayloadSnapshot
) -> RouteValidityList<'a>
pub fn validity<'a>( &self, snapshot: &'a PayloadSnapshot ) -> RouteValidityList<'a>
Checks the validity of all routes and returns a vec with results.
Trait Implementations§
source§impl Clone for RequestList
impl Clone for RequestList
source§fn clone(&self) -> RequestList
fn clone(&self) -> RequestList
Returns a copy 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 RequestList
impl Debug for RequestList
source§impl Default for RequestList
impl Default for RequestList
source§fn default() -> RequestList
fn default() -> RequestList
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RequestList
impl<'de> Deserialize<'de> for RequestList
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 RefUnwindSafe for RequestList
impl Send for RequestList
impl Sync for RequestList
impl Unpin for RequestList
impl UnwindSafe for RequestList
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