pub struct OwnerRepo { /* private fields */ }Expand description
One repository, as OWNER/REPO.
Implementations§
Source§impl OwnerRepo
impl OwnerRepo
Sourcepub fn new(
owner: impl AsRef<str>,
repo: impl AsRef<str>,
) -> Result<Self, ValidationError>
pub fn new( owner: impl AsRef<str>, repo: impl AsRef<str>, ) -> Result<Self, ValidationError>
§Errors
Either half failing GitHub’s naming rules.
Sourcepub fn parse(raw: impl AsRef<str>) -> Result<Self, ValidationError>
pub fn parse(raw: impl AsRef<str>) -> Result<Self, ValidationError>
§Errors
Input that is not exactly one owner/repo pair.
pub fn owner(&self) -> &str
pub fn repo(&self) -> &str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OwnerRepo
impl<'de> Deserialize<'de> for OwnerRepo
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 Eq for OwnerRepo
Source§impl Ord for OwnerRepo
impl Ord for OwnerRepo
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for OwnerRepo
impl PartialOrd for OwnerRepo
impl StructuralPartialEq for OwnerRepo
Auto Trait Implementations§
impl Freeze for OwnerRepo
impl RefUnwindSafe for OwnerRepo
impl Send for OwnerRepo
impl Sync for OwnerRepo
impl Unpin for OwnerRepo
impl UnsafeUnpin for OwnerRepo
impl UnwindSafe for OwnerRepo
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