pub struct ReposCreateDeployKeyRequest {
pub title: Option<String>,
pub key: String,
pub read_only: Option<bool>,
}
Fields§
§title: Option<String>
A name for the key.
key: String
The contents of the key.
read_only: Option<bool>
If true
, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "Repository permission levels for an organization" and "Permission levels for a user account repository."
Implementations§
Source§impl ReposCreateDeployKeyRequest
impl ReposCreateDeployKeyRequest
pub fn new(key: String) -> ReposCreateDeployKeyRequest
Trait Implementations§
Source§impl Clone for ReposCreateDeployKeyRequest
impl Clone for ReposCreateDeployKeyRequest
Source§fn clone(&self) -> ReposCreateDeployKeyRequest
fn clone(&self) -> ReposCreateDeployKeyRequest
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 Debug for ReposCreateDeployKeyRequest
impl Debug for ReposCreateDeployKeyRequest
Source§impl Default for ReposCreateDeployKeyRequest
impl Default for ReposCreateDeployKeyRequest
Source§fn default() -> ReposCreateDeployKeyRequest
fn default() -> ReposCreateDeployKeyRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReposCreateDeployKeyRequest
impl<'de> Deserialize<'de> for ReposCreateDeployKeyRequest
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 StructuralPartialEq for ReposCreateDeployKeyRequest
Auto Trait Implementations§
impl Freeze for ReposCreateDeployKeyRequest
impl RefUnwindSafe for ReposCreateDeployKeyRequest
impl Send for ReposCreateDeployKeyRequest
impl Sync for ReposCreateDeployKeyRequest
impl Unpin for ReposCreateDeployKeyRequest
impl UnwindSafe for ReposCreateDeployKeyRequest
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