#[non_exhaustive]pub struct ForgeIdentity {
pub platform: GitForgePlatform,
pub owner: String,
pub repo: String,
pub domain: String,
}Expand description
Identity of a git-forge flake ref: (platform, owner, repo, domain).
Returned by FlakeRef::forge_identity for kinds that resolve to a
git forge (GitForge always; Resource(Git) does not; its
owner/repo/domain are extracted ad-hoc from a URL string and not
guaranteed to be present, so it returns None for forge_identity).
#[non_exhaustive] reserves room for future fields without breaking
downstream match arms.
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.platform: GitForgePlatform§owner: String§repo: String§domain: StringTrait Implementations§
Source§impl Clone for ForgeIdentity
impl Clone for ForgeIdentity
Source§fn clone(&self) -> ForgeIdentity
fn clone(&self) -> ForgeIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ForgeIdentity
impl Debug for ForgeIdentity
Source§impl PartialEq for ForgeIdentity
impl PartialEq for ForgeIdentity
Source§fn eq(&self, other: &ForgeIdentity) -> bool
fn eq(&self, other: &ForgeIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ForgeIdentity
impl StructuralPartialEq for ForgeIdentity
Auto Trait Implementations§
impl Freeze for ForgeIdentity
impl RefUnwindSafe for ForgeIdentity
impl Send for ForgeIdentity
impl Sync for ForgeIdentity
impl Unpin for ForgeIdentity
impl UnsafeUnpin for ForgeIdentity
impl UnwindSafe for ForgeIdentity
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