pub struct BoundRead { /* private fields */ }Expand description
A verified principal and one in-memory credential. Never serialized or Debug.
Implementations§
Source§impl BoundRead
impl BoundRead
Sourcepub fn organizations(&self) -> Result<Vec<Organization>, Error>
pub fn organizations(&self) -> Result<Vec<Organization>, Error>
Active memberships only; a public organization is not authorization.
Sourcepub fn repositories(
&self,
organization: &str,
) -> Result<Vec<PackageRepository>, Error>
pub fn repositories( &self, organization: &str, ) -> Result<Vec<PackageRepository>, Error>
Discover readable repositories after verifying active membership.
Sourcepub fn resolve_repository(
&self,
repository: &str,
reference: &RepositoryRef,
) -> Result<ResolvedRepository, Error>
pub fn resolve_repository( &self, repository: &str, reference: &RepositoryRef, ) -> Result<ResolvedRepository, Error>
Each operation rechecks membership and repository read access.
pub fn package_releases( &self, repository: &str, ) -> Result<Vec<PackageRelease>, Error>
pub fn package_release( &self, repository: &str, id: u64, ) -> Result<PackageRelease, Error>
pub fn download_repository( &self, repository: &str, commit: &str, ) -> Result<Vec<u8>, Error>
pub fn download_release( &self, repository: &str, id: u64, asset_name: &str, include_prereleases: bool, ) -> Result<Vec<u8>, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for BoundRead
impl !UnwindSafe for BoundRead
impl Forget for BoundRead
impl Freeze for BoundRead
impl Move for BoundRead
impl Send for BoundRead
impl Sync for BoundRead
impl Unpin for BoundRead
impl UnsafeUnpin for BoundRead
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