#[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<OnClose>
pub fn from_str_name(value: &str) -> Option<OnClose>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for OnClose
impl Ord for OnClose
Source§impl PartialOrd for OnClose
impl PartialOrd for OnClose
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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