This commit is contained in:
Antonio Scandurra 2023-07-18 15:11:35 +02:00
parent 6205ac27a5
commit 5267c6d2cb
3 changed files with 85 additions and 28 deletions

View file

@ -1,4 +1,4 @@
use crate::{RepoId, Request};
use crate::{Message, RepoId, Request, RoomCredentials};
use std::sync::Arc;
pub struct PublishRepo {
@ -6,6 +6,22 @@ pub struct PublishRepo {
pub name: Arc<str>,
}
impl Request for PublishRepo {
type Response = ();
impl Message for PublishRepo {
fn to_bytes(&self) -> Vec<u8> {
todo!()
}
}
impl Request for PublishRepo {
type Response = PublishRepoResponse;
}
pub struct PublishRepoResponse {
pub credentials: RoomCredentials,
}
impl Message for PublishRepoResponse {
fn to_bytes(&self) -> Vec<u8> {
todo!()
}
}