pub struct TagProtection {
pub created_at: Option<String>,
pub id: Option<i64>,
pub name_pattern: Option<String>,
pub updated_at: Option<String>,
pub whitelist_teams: Option<Vec<String>>,
pub whitelist_usernames: Option<Vec<String>>,
}Expand description
TagProtection : TagProtection represents a tag protection
Fields§
§created_at: Option<String>§id: Option<i64>The unique identifier of the tag protection
name_pattern: Option<String>The pattern to match tag names for protection
updated_at: Option<String>§whitelist_teams: Option<Vec<String>>List of team names allowed to create/delete protected tags
whitelist_usernames: Option<Vec<String>>List of usernames allowed to create/delete protected tags
Implementations§
Source§impl TagProtection
impl TagProtection
Sourcepub fn new() -> TagProtection
pub fn new() -> TagProtection
TagProtection represents a tag protection
Trait Implementations§
Source§impl Clone for TagProtection
impl Clone for TagProtection
Source§fn clone(&self) -> TagProtection
fn clone(&self) -> TagProtection
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 TagProtection
impl Debug for TagProtection
Source§impl Default for TagProtection
impl Default for TagProtection
Source§fn default() -> TagProtection
fn default() -> TagProtection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TagProtection
impl<'de> Deserialize<'de> for TagProtection
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 TagProtection
impl PartialEq for TagProtection
Source§fn eq(&self, other: &TagProtection) -> bool
fn eq(&self, other: &TagProtection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TagProtection
impl Serialize for TagProtection
impl StructuralPartialEq for TagProtection
Auto Trait Implementations§
impl Freeze for TagProtection
impl RefUnwindSafe for TagProtection
impl Send for TagProtection
impl Sync for TagProtection
impl Unpin for TagProtection
impl UnsafeUnpin for TagProtection
impl UnwindSafe for TagProtection
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