pub struct ActionRequest {
pub id: usize,
pub created: usize,
pub owner: usize,
pub action_type: ActionType,
pub linked_asset: usize,
pub data: ActionData,
}Fields§
§id: usize§created: usize§owner: usize§action_type: ActionType§linked_asset: usizeThe ID of the asset this request links to. Should exist in the correct
table for the given ActionType.
data: ActionDataOptional data attached to the action request.
Implementations§
Source§impl ActionRequest
impl ActionRequest
Sourcepub fn new(
owner: usize,
action_type: ActionType,
linked_asset: usize,
data: Option<ActionData>,
) -> Self
pub fn new( owner: usize, action_type: ActionType, linked_asset: usize, data: Option<ActionData>, ) -> Self
Create a new ActionRequest.
Sourcepub fn with_id(
id: usize,
owner: usize,
action_type: ActionType,
linked_asset: usize,
data: Option<ActionData>,
) -> Self
pub fn with_id( id: usize, owner: usize, action_type: ActionType, linked_asset: usize, data: Option<ActionData>, ) -> Self
Create a new ActionRequest with the given id.
Trait Implementations§
Source§impl Debug for ActionRequest
impl Debug for ActionRequest
Source§impl<'de> Deserialize<'de> for ActionRequest
impl<'de> Deserialize<'de> for ActionRequest
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 Freeze for ActionRequest
impl RefUnwindSafe for ActionRequest
impl Send for ActionRequest
impl Sync for ActionRequest
impl Unpin for ActionRequest
impl UnwindSafe for ActionRequest
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