pub struct RemoteInfo {
pub name: String,
pub uri: String,
pub main_branch: String,
}Expand description
Remote repository information.
Fields§
§name: StringName of the remote (e.g., “origin”, “upstream”).
uri: StringURI of the remote repository.
main_branch: StringDetected main branch name for this remote.
Implementations§
Source§impl RemoteInfo
impl RemoteInfo
Sourcepub fn get_all_remotes(repo: &Repository) -> Result<Vec<Self>>
pub fn get_all_remotes(repo: &Repository) -> Result<Vec<Self>>
Returns all remotes for a repository.
Trait Implementations§
Source§impl Clone for RemoteInfo
impl Clone for RemoteInfo
Source§fn clone(&self) -> RemoteInfo
fn clone(&self) -> RemoteInfo
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 RemoteInfo
impl Debug for RemoteInfo
Source§impl<'de> Deserialize<'de> for RemoteInfo
impl<'de> Deserialize<'de> for RemoteInfo
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 RemoteInfo
impl RefUnwindSafe for RemoteInfo
impl Send for RemoteInfo
impl Sync for RemoteInfo
impl Unpin for RemoteInfo
impl UnsafeUnpin for RemoteInfo
impl UnwindSafe for RemoteInfo
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