pub struct RspamdEndpoint<'a> {
pub url: &'a str,
pub command: RspamdCommand,
pub need_body: bool,
}Expand description
Ephemeral endpoint representation
Fields§
§url: &'a str§command: RspamdCommand§need_body: boolImplementations§
Source§impl<'a> RspamdEndpoint<'a>
Represents a request to the Rspamd server
impl<'a> RspamdEndpoint<'a>
Represents a request to the Rspamd server
Sourcepub fn from_command(command: RspamdCommand) -> RspamdEndpoint<'a>
pub fn from_command(command: RspamdCommand) -> RspamdEndpoint<'a>
Create a new endpoint from a command
Auto Trait Implementations§
impl<'a> Freeze for RspamdEndpoint<'a>
impl<'a> RefUnwindSafe for RspamdEndpoint<'a>
impl<'a> Send for RspamdEndpoint<'a>
impl<'a> Sync for RspamdEndpoint<'a>
impl<'a> Unpin for RspamdEndpoint<'a>
impl<'a> UnwindSafe for RspamdEndpoint<'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