#[repr(i32)]pub enum OnClose {
Nothing = 0,
Reload = 1,
}Expand description
What the client does when a link opened by an OnClick action is closed.
Implementation depends on client platform capabilities. For example, a web
browser might open a link in a pop-up window with an OnClose handler.
If both OnOpen and OnClose handlers are set, and the client platform
can’t support both values, OnClose takes precedence.
Variants§
Nothing = 0
Default value. The card doesn’t reload; nothing happens.
Reload = 1
Reloads the card after the child window closes.
If used in conjunction with
OpenAs.OVERLAY,
the child window acts as a modal dialog and the parent card is blocked
until the child window closes.
Implementations§
source§impl OnClose
impl OnClose
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for OnClose
impl Ord for OnClose
source§impl PartialEq for OnClose
impl PartialEq for OnClose
source§impl PartialOrd for OnClose
impl PartialOrd for OnClose
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for OnClose
impl TryFrom<i32> for OnClose
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for OnClose
impl Eq for OnClose
impl StructuralPartialEq for OnClose
Auto Trait Implementations§
impl Freeze for OnClose
impl RefUnwindSafe for OnClose
impl Send for OnClose
impl Sync for OnClose
impl Unpin for OnClose
impl UnwindSafe for OnClose
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request