pub enum GitiverseResponse {
RepoInfo {
repo_id: RepoId,
name: String,
description: String,
visibility: RepoVisibility,
founder: ActorId,
merge_policy: MergePolicy,
maintainers: Vec<ActorId>,
},
RefsList {
repo_id: RepoId,
refs: BTreeMap<String, String>,
signed_refs: Option<SignedRefMap>,
},
RefsUpdate {
repo_id: RepoId,
updated: Vec<String>,
},
PackFetch {
repo_id: RepoId,
pack_bytes: Vec<u8>,
refs: BTreeMap<String, String>,
},
PackPush {
repo_id: RepoId,
accepted_refs: Vec<String>,
},
CobSync {
repo_id: RepoId,
kind: String,
ops_cbor: Vec<Vec<u8>>,
tips: Vec<String>,
},
ChecksList {
repo_id: RepoId,
commit_oid: String,
attestations_cbor: Vec<Vec<u8>>,
},
ChecksAttest {
repo_id: RepoId,
accepted: bool,
},
InviteRedeem {
repo_id: RepoId,
granted_token_cbor: Vec<u8>,
capability: String,
},
}Expand description
Versioned canonical CBOR responses for exadev.io/gitiverse.
Variants§
RepoInfo
RefsList
RefsUpdate
PackFetch
PackPush
CobSync
ChecksList
ChecksAttest
InviteRedeem
Implementations§
Source§impl GitiverseResponse
impl GitiverseResponse
pub const fn verb(&self) -> &'static str
pub const fn repo_id(&self) -> RepoId
pub fn encode_cbor(&self) -> Vec<u8> ⓘ
pub fn decode_cbor(bytes: &[u8]) -> Result<Self, ProtocolError>
Sourcepub fn to_manage_ok(&self) -> ManageOk
pub fn to_manage_ok(&self) -> ManageOk
Converts this response into a wire-mesh ManageOk carrying all fields in canonical CDE order.
Sourcepub fn from_manage_ok(ok: &ManageOk) -> Result<Self, ProtocolError>
pub fn from_manage_ok(ok: &ManageOk) -> Result<Self, ProtocolError>
Decodes a GitiverseResponse from a wire-mesh ManageOk.
Trait Implementations§
Source§impl Clone for GitiverseResponse
impl Clone for GitiverseResponse
Source§impl Debug for GitiverseResponse
impl Debug for GitiverseResponse
Source§impl Decode<'_, ()> for GitiverseResponse
impl Decode<'_, ()> for GitiverseResponse
Source§impl Encode<()> for GitiverseResponse
impl Encode<()> for GitiverseResponse
impl Eq for GitiverseResponse
Source§impl PartialEq for GitiverseResponse
impl PartialEq for GitiverseResponse
impl StructuralPartialEq for GitiverseResponse
Auto Trait Implementations§
impl Forget for GitiverseResponse
impl Freeze for GitiverseResponsewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ActorId>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<Vec<u8>>: Freeze,
impl Move for GitiverseResponse
impl RefUnwindSafe for GitiverseResponse
impl Send for GitiverseResponse
impl Sync for GitiverseResponse
impl Unpin for GitiverseResponse
impl UnsafeUnpin for GitiverseResponsewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ActorId>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<Vec<u8>>: UnsafeUnpin,
impl UnwindSafe for GitiverseResponse
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