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>,
}Fields§
§plugin: String§packet_type: String§due_at: SimTime§priority: i32§payload: Value§affected_entities: Vec<EntityRef>§cause: Option<CauseRef>Implementations§
Source§impl PluginIngressRequest
impl PluginIngressRequest
pub fn new( plugin: impl Into<String>, packet_type: impl Into<String>, due_at: SimTime, payload: Value, ) -> PluginIngressRequest
pub const fn with_priority(self, priority: i32) -> PluginIngressRequest
pub fn with_entity(self, entity: EntityRef) -> PluginIngressRequest
pub fn caused_by(self, cause: CauseRef) -> PluginIngressRequest
Trait Implementations§
Source§impl Clone for PluginIngressRequest
impl Clone for PluginIngressRequest
Source§fn clone(&self) -> PluginIngressRequest
fn clone(&self) -> PluginIngressRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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<PluginIngressRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PluginIngressRequest, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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