pub struct PluginIngressRequest {
pub plugin: String,
pub packet_type: String,
pub due_at: SimTime,
pub priority: i32,
pub payload: Value,
pub affected_entities: Vec<EntityRef>,
pub cause: Option<CauseRef>,
pub archive_retention: Vec<PluginArchiveRetention>,
}Fields§
§plugin: String§packet_type: String§due_at: SimTime§priority: i32§payload: Value§affected_entities: Vec<EntityRef>§cause: Option<CauseRef>§archive_retention: Vec<PluginArchiveRetention>Implementations§
Source§impl PluginIngressRequest
impl PluginIngressRequest
pub fn new( plugin: impl Into<String>, packet_type: impl Into<String>, due_at: SimTime, payload: Value, ) -> Self
pub const fn with_priority(self, priority: i32) -> Self
pub fn with_entity(self, entity: EntityRef) -> Self
pub fn caused_by(self, cause: CauseRef) -> Self
pub fn with_archive_retention( self, retention: impl IntoIterator<Item = PluginArchiveRetention>, ) -> Self
Trait Implementations§
Source§impl Clone for PluginIngressRequest
impl Clone for PluginIngressRequest
Source§impl Debug for PluginIngressRequest
impl Debug for PluginIngressRequest
Source§impl<'de> Deserialize<'de> for PluginIngressRequest
impl<'de> Deserialize<'de> for PluginIngressRequest
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 PartialEq for PluginIngressRequest
impl PartialEq for PluginIngressRequest
Source§impl Serialize for PluginIngressRequest
impl Serialize for PluginIngressRequest
impl StructuralPartialEq for PluginIngressRequest
Auto Trait Implementations§
impl Freeze for PluginIngressRequest
impl RefUnwindSafe for PluginIngressRequest
impl Send for PluginIngressRequest
impl Sync for PluginIngressRequest
impl Unpin for PluginIngressRequest
impl UnsafeUnpin for PluginIngressRequest
impl UnwindSafe for PluginIngressRequest
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