#[non_exhaustive]pub struct AutoAccept {
pub auto_accept_projects: Vec<String>,
/* private fields */
}Expand description
The auto-accept setting for a group controls whether proposed spokes are automatically attached to the hub. If auto-accept is enabled, the spoke immediately is attached to the hub and becomes part of the group. In this case, the new spoke is in the ACTIVE state. If auto-accept is disabled, the spoke goes to the INACTIVE state, and it must be reviewed and accepted by a hub administrator.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.auto_accept_projects: Vec<String>Optional. A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
Implementations§
Source§impl AutoAccept
impl AutoAccept
pub fn new() -> Self
Sourcepub fn set_auto_accept_projects<T, V>(self, v: T) -> Self
pub fn set_auto_accept_projects<T, V>(self, v: T) -> Self
Sets the value of auto_accept_projects.
Trait Implementations§
Source§impl Clone for AutoAccept
impl Clone for AutoAccept
Source§fn clone(&self) -> AutoAccept
fn clone(&self) -> AutoAccept
Returns a copy of the value. Read more
1.0.0 · 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 AutoAccept
impl Debug for AutoAccept
Source§impl Default for AutoAccept
impl Default for AutoAccept
Source§fn default() -> AutoAccept
fn default() -> AutoAccept
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutoAcceptwhere
AutoAccept: Default,
impl<'de> Deserialize<'de> for AutoAcceptwhere
AutoAccept: Default,
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 Message for AutoAccept
impl Message for AutoAccept
Source§impl PartialEq for AutoAccept
impl PartialEq for AutoAccept
Source§impl Serialize for AutoAccept
impl Serialize for AutoAccept
impl StructuralPartialEq for AutoAccept
Auto Trait Implementations§
impl Freeze for AutoAccept
impl RefUnwindSafe for AutoAccept
impl Send for AutoAccept
impl Sync for AutoAccept
impl Unpin for AutoAccept
impl UnwindSafe for AutoAccept
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