Struct spacegate_kernel::plugins::filters::SgPluginFilterAccept
source · #[non_exhaustive]pub struct SgPluginFilterAccept {
pub kind: Vec<SgPluginFilterKind>,
pub accept_error_response: bool,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: Vec<SgPluginFilterKind>§accept_error_response: boolWhether to accept the error response, default is false .
if filter can accept the error response, it should return true
Trait Implementations§
source§impl Clone for SgPluginFilterAccept
impl Clone for SgPluginFilterAccept
source§fn clone(&self) -> SgPluginFilterAccept
fn clone(&self) -> SgPluginFilterAccept
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 SgPluginFilterAccept
impl Debug for SgPluginFilterAccept
Auto Trait Implementations§
impl RefUnwindSafe for SgPluginFilterAccept
impl Send for SgPluginFilterAccept
impl Sync for SgPluginFilterAccept
impl Unpin for SgPluginFilterAccept
impl UnwindSafe for SgPluginFilterAccept
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