pub enum Resource {
File {
owner: String,
repo: String,
reference: String,
path: String,
},
Release {
owner: String,
repo: String,
tag: String,
name: String,
},
}Expand description
Github resource types
Variants§
File
Raw file in a repository Format: owner/repo/reference/path reference can be: branch name, tag, commit hash, or refs/heads/branch
Release
Release asset Format: owner/repo/tag/filename
Implementations§
Source§impl Resource
impl Resource
Sourcepub fn file(
owner: String,
repo: String,
reference: String,
path: String,
) -> Self
pub fn file( owner: String, repo: String, reference: String, path: String, ) -> Self
Create a new file resource
§Arguments
owner- Repository ownerrepo- Repository namereference- Git reference (branch, tag, commit hash, or refs/heads/branch)path- File path in the repository
Trait Implementations§
Source§impl IntoEnumIterator for Resource
impl IntoEnumIterator for Resource
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
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