pub struct WebAction {
pub key: Option<String>,
pub name: Option<String>,
pub level: Option<String>,
pub execute: Option<String>,
pub target: Option<String>,
pub component: Option<String>,
pub warning_message: Option<String>,
pub role_for_list: Option<String>,
pub request_url: Option<String>,
}Fields§
§key: Option<String>§name: Option<String>§level: Option<String>§execute: Option<String>§target: Option<String>§component: Option<String>§warning_message: Option<String>§role_for_list: Option<String>§request_url: Option<String>Implementations§
Source§impl WebAction
impl WebAction
pub fn new() -> Self
pub fn view_web_action() -> Self
pub fn view_sub_list_action( name: impl Into<String>, list_view_name: impl Into<String>, role_for_list: impl Into<String>, ) -> Self
pub fn simple_component_action( name: impl Into<String>, component_name: impl Into<String>, ) -> Self
pub fn modify_web_action( name: impl Into<String>, url: impl Into<String>, ) -> Self
pub fn modify_web_action_with_warning( name: impl Into<String>, url: impl Into<String>, warning_message: Option<impl Into<String>>, ) -> Self
pub fn default_modify_web_action() -> Self
pub fn delete_web_action() -> Self
pub fn delete_web_action_with_warning( url: impl Into<String>, warning_message: impl Into<String>, ) -> Self
pub fn audit_web_action( url: impl Into<String>, warning_message: impl Into<String>, ) -> Self
pub fn discard_web_action( url: impl Into<String>, warning_message: impl Into<String>, ) -> Self
pub fn goto_action( name: impl Into<String>, target: impl Into<String>, url: impl Into<String>, ) -> Self
pub fn switch_view_action( view_name: impl Into<String>, target: impl Into<String>, ) -> Self
pub fn add_new_web_action(object_display_name: impl Into<String>) -> Self
pub fn batch_upload_web_action() -> Self
pub fn common_web_actions() -> Vec<Self>
pub fn key(self, key: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn level(self, level: impl Into<String>) -> Self
pub fn execute(self, execute: impl Into<String>) -> Self
pub fn target(self, target: impl Into<String>) -> Self
pub fn component(self, component: impl Into<String>) -> Self
pub fn warning_message(self, warning_message: impl Into<String>) -> Self
pub fn optional_warning_message( self, warning_message: Option<impl Into<String>>, ) -> Self
pub fn role_for_list(self, role_for_list: impl Into<String>) -> Self
pub fn request_url(self, request_url: impl Into<String>) -> Self
pub fn to_json_value(&self) -> Value
pub fn bind_base(&self, entity: &mut BaseEntityData)
pub fn bind_entity<E>(&self, entity: &mut E)where
E: BaseEntity,
pub fn bind_record(&self, record: &mut Record)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WebAction
impl<'de> Deserialize<'de> for WebAction
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
impl Eq for WebAction
impl StructuralPartialEq for WebAction
Auto Trait Implementations§
impl Freeze for WebAction
impl RefUnwindSafe for WebAction
impl Send for WebAction
impl Sync for WebAction
impl Unpin for WebAction
impl UnsafeUnpin for WebAction
impl UnwindSafe for WebAction
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