pub struct PatchedCustomLinkRequest {
pub object_types: Option<Vec<String>>,
pub name: Option<String>,
pub enabled: Option<bool>,
pub link_text: Option<String>,
pub link_url: Option<String>,
pub weight: Option<i32>,
pub group_name: Option<String>,
pub button_class: Option<ButtonClass>,
pub new_window: Option<bool>,
pub owner: Option<Option<Box<AsnRangeRequestOwner>>>,
}Expand description
PatchedCustomLinkRequest : Adds an owner field for models which have a ForeignKey to users.Owner.
Fields§
§object_types: Option<Vec<String>>§name: Option<String>§enabled: Option<bool>§link_text: Option<String>Jinja2 template code for link text
link_url: Option<String>Jinja2 template code for link URL
weight: Option<i32>§group_name: Option<String>Links with the same group will appear as a dropdown menu
The class of the first link in a group will be used for the dropdown button * default - Default * blue - Blue * indigo - Indigo * purple - Purple * pink - Pink * red - Red * orange - Orange * yellow - Yellow * green - Green * teal - Teal * cyan - Cyan * gray - Gray * black - Black * white - White * ghost-dark - Link
new_window: Option<bool>Force link to open in a new window
owner: Option<Option<Box<AsnRangeRequestOwner>>>Implementations§
Source§impl PatchedCustomLinkRequest
impl PatchedCustomLinkRequest
Sourcepub fn new() -> PatchedCustomLinkRequest
pub fn new() -> PatchedCustomLinkRequest
Adds an owner field for models which have a ForeignKey to users.Owner.
Trait Implementations§
Source§impl Clone for PatchedCustomLinkRequest
impl Clone for PatchedCustomLinkRequest
Source§fn clone(&self) -> PatchedCustomLinkRequest
fn clone(&self) -> PatchedCustomLinkRequest
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 PatchedCustomLinkRequest
impl Debug for PatchedCustomLinkRequest
Source§impl Default for PatchedCustomLinkRequest
impl Default for PatchedCustomLinkRequest
Source§fn default() -> PatchedCustomLinkRequest
fn default() -> PatchedCustomLinkRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedCustomLinkRequest
impl<'de> Deserialize<'de> for PatchedCustomLinkRequest
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
Source§impl PartialEq for PatchedCustomLinkRequest
impl PartialEq for PatchedCustomLinkRequest
Source§fn eq(&self, other: &PatchedCustomLinkRequest) -> bool
fn eq(&self, other: &PatchedCustomLinkRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PatchedCustomLinkRequest
impl Serialize for PatchedCustomLinkRequest
impl StructuralPartialEq for PatchedCustomLinkRequest
Auto Trait Implementations§
impl Freeze for PatchedCustomLinkRequest
impl RefUnwindSafe for PatchedCustomLinkRequest
impl Send for PatchedCustomLinkRequest
impl Sync for PatchedCustomLinkRequest
impl Unpin for PatchedCustomLinkRequest
impl UnsafeUnpin for PatchedCustomLinkRequest
impl UnwindSafe for PatchedCustomLinkRequest
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