#[non_exhaustive]pub struct IndirectAccess {
pub role: ForgeRole,
pub via: Vec<AccessSource>,
}Expand description
Access an account has to a repository that is not a direct role on it —
what is left after its direct role was taken away (git-ns/bridge/job
0.2 removeAccounts), and which the bridge reports rather than changes.
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.role: ForgeRoleThe account’s effective role on the repository, as the forge reports it.
via: Vec<AccessSource>Where it comes from, as far as the forge says. Empty when it does not say.
Implementations§
Source§impl IndirectAccess
impl IndirectAccess
Sourcepub fn new(role: ForgeRole, via: Vec<AccessSource>) -> Self
pub fn new(role: ForgeRole, via: Vec<AccessSource>) -> Self
role, coming from via.
Trait Implementations§
Source§impl Clone for IndirectAccess
impl Clone for IndirectAccess
Source§impl Debug for IndirectAccess
impl Debug for IndirectAccess
Source§impl<'de> Deserialize<'de> for IndirectAccess
impl<'de> Deserialize<'de> for IndirectAccess
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 Display for IndirectAccess
impl Display for IndirectAccess
impl Eq for IndirectAccess
Source§impl PartialEq for IndirectAccess
impl PartialEq for IndirectAccess
Source§impl Serialize for IndirectAccess
impl Serialize for IndirectAccess
impl StructuralPartialEq for IndirectAccess
Auto Trait Implementations§
impl Freeze for IndirectAccess
impl RefUnwindSafe for IndirectAccess
impl Send for IndirectAccess
impl Sync for IndirectAccess
impl Unpin for IndirectAccess
impl UnsafeUnpin for IndirectAccess
impl UnwindSafe for IndirectAccess
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