pub enum ActionRef {
Bare(InteractionId),
WithMethod {
interaction_id: InteractionId,
http_method: Option<InteractionHttpMethod>,
},
}Expand description
Reference to an interaction from an action bar. Untagged two-form reader: the legacy bare-string form (method omitted — resolves only when the target ID registers exactly one method) and an object form for multi-method IDs. NOTE: adding a third form later hard-fails two-form readers on old peers (accepted, spec §2a).
Variants§
Bare(InteractionId)
WithMethod
Implementations§
Source§impl ActionRef
impl ActionRef
pub fn interaction_id(&self) -> &InteractionId
pub fn http_method(&self) -> Option<&InteractionHttpMethod>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ActionRef
impl<'de> Deserialize<'de> for ActionRef
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActionRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActionRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ActionRef
Source§impl From<InteractionId> for ActionRef
impl From<InteractionId> for ActionRef
Source§fn from(id: InteractionId) -> ActionRef
fn from(id: InteractionId) -> ActionRef
Converts to this type from the input type.
Source§impl Serialize for ActionRef
impl Serialize for ActionRef
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 ActionRef
Auto Trait Implementations§
impl Freeze for ActionRef
impl RefUnwindSafe for ActionRef
impl Send for ActionRef
impl Sync for ActionRef
impl Unpin for ActionRef
impl UnsafeUnpin for ActionRef
impl UnwindSafe for ActionRef
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.