pub struct OperationInfo {
pub service: Cow<'static, str>,
pub operation: Cow<'static, str>,
pub resource_type: Cow<'static, str>,
pub is_mutation: bool,
pub resource_id: Option<i64>,
}Expand description
The semantic identity of a call: the service and operation as the model names them, the kind of record they touch, and whether they change anything.
This is what the call means, not what goes over the wire. A hand-written wrapper is
free to report itself as something other than the route it sends — HEY stops a time
track by updating it, and a wrapper that does so says StopTimeTrack.
Fields§
§service: Cow<'static, str>The service handle the call came from: Boxes, TimeTracks.
operation: Cow<'static, str>The operation as the model names it: ListBoxes, MovePostings.
resource_type: Cow<'static, str>The kind of record the call acts on, in snake_case: box, time_track.
is_mutation: boolWhether the call changes something in HEY rather than reading it.
resource_id: Option<i64>The record the path names, when it names one.
Trait Implementations§
Source§impl Clone for OperationInfo
impl Clone for OperationInfo
Source§fn clone(&self) -> OperationInfo
fn clone(&self) -> OperationInfo
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 OperationInfo
impl Debug for OperationInfo
impl Eq for OperationInfo
Source§impl PartialEq for OperationInfo
impl PartialEq for OperationInfo
impl StructuralPartialEq for OperationInfo
Auto Trait Implementations§
impl Freeze for OperationInfo
impl RefUnwindSafe for OperationInfo
impl Send for OperationInfo
impl Sync for OperationInfo
impl Unpin for OperationInfo
impl UnsafeUnpin for OperationInfo
impl UnwindSafe for OperationInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.