pub struct ActionsCreateOrgVariableRequest {
pub name: String,
pub value: String,
pub visibility: Visibility,
pub selected_repository_ids: Option<Vec<i32>>,
}
Fields§
§name: String
The name of the variable.
value: String
The value of the variable.
visibility: Visibility
The type of repositories in the organization that can access the variable. selected
means only the repositories specified by selected_repository_ids
can access the variable.
selected_repository_ids: Option<Vec<i32>>
An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the visibility
is set to selected
.
Implementations§
Source§impl ActionsCreateOrgVariableRequest
impl ActionsCreateOrgVariableRequest
pub fn new( name: String, value: String, visibility: Visibility, ) -> ActionsCreateOrgVariableRequest
Trait Implementations§
Source§impl Clone for ActionsCreateOrgVariableRequest
impl Clone for ActionsCreateOrgVariableRequest
Source§fn clone(&self) -> ActionsCreateOrgVariableRequest
fn clone(&self) -> ActionsCreateOrgVariableRequest
Returns a duplicate 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 Default for ActionsCreateOrgVariableRequest
impl Default for ActionsCreateOrgVariableRequest
Source§fn default() -> ActionsCreateOrgVariableRequest
fn default() -> ActionsCreateOrgVariableRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActionsCreateOrgVariableRequest
impl<'de> Deserialize<'de> for ActionsCreateOrgVariableRequest
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 ActionsCreateOrgVariableRequest
impl PartialEq for ActionsCreateOrgVariableRequest
Source§fn eq(&self, other: &ActionsCreateOrgVariableRequest) -> bool
fn eq(&self, other: &ActionsCreateOrgVariableRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ActionsCreateOrgVariableRequest
Auto Trait Implementations§
impl Freeze for ActionsCreateOrgVariableRequest
impl RefUnwindSafe for ActionsCreateOrgVariableRequest
impl Send for ActionsCreateOrgVariableRequest
impl Sync for ActionsCreateOrgVariableRequest
impl Unpin for ActionsCreateOrgVariableRequest
impl UnwindSafe for ActionsCreateOrgVariableRequest
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