pub struct RoleConfig {
pub target: String,
pub resource: Resource,
pub resource_id: String,
pub scopes: Vec<String>,
pub access_level: u8,
pub default_ttl_seconds: i64,
}Expand description
What one consumer may mint.
Fields§
§target: StringWhich gitlab/config/{name} document to authenticate with.
resource: Resource§resource_id: StringNumeric project or group id. GitLab also accepts a URL-encoded path, but ids do not break when a project is renamed or moved.
scopes: Vec<String>GitLab rejects a token with no scopes, so this must be non-empty.
read_repository for cloning, read_api for read-only API access.
access_level: u8§default_ttl_seconds: i64The deadline the reaper enforces. GitLab cannot express anything this short — see the module docs.
Trait Implementations§
Source§impl Clone for RoleConfig
impl Clone for RoleConfig
Source§impl Debug for RoleConfig
impl Debug for RoleConfig
Source§impl<'de> Deserialize<'de> for RoleConfig
impl<'de> Deserialize<'de> for RoleConfig
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
Auto Trait Implementations§
impl Freeze for RoleConfig
impl RefUnwindSafe for RoleConfig
impl Send for RoleConfig
impl Sync for RoleConfig
impl Unpin for RoleConfig
impl UnsafeUnpin for RoleConfig
impl UnwindSafe for RoleConfig
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