pub struct Tlpt(/* private fields */);Implementations§
Source§impl Tlpt
impl Tlpt
pub async fn new_with_account<S>(
name: String,
background: Mofo,
account_id: TeamID,
account_credential: MemberCredential,
storage: S,
remotes: impl Stream<Item = Remote> + Unpin + 'static,
) -> Tlptwhere
S: StorageBackend + 'static,
pub async fn new_with_create_account<C, S>( name: String, background: Mofo, profile_constructor: C, storage: S, remotes: impl Stream<Item = Remote> + Unpin + 'static, ) -> (Tlpt, TeamID, MemberCredential)
pub async fn create_profile<C>( &self, in_account: &TeamID, constructor: C, ) -> Doc
pub async fn wait_for_account_profile(&self, account_id: &TeamID) -> Doc
pub fn get_account_profile_id(&self, account_id: &TeamID) -> Option<DocID>
pub async fn introduce_in_as(&self, team: &Team, account_id: &TeamID)
pub async fn async_is_introducted_in(&self, team: &Team) -> bool
pub fn is_currently_introducted_in(&self, team: &Team) -> bool
pub async fn ensure_introduced_in(&self, team: &Team)
pub async fn verify_profile( &self, signed_id: Signed<DocID>, ) -> Result<Doc, Vec<SignatureError>>
Source§impl Tlpt
impl Tlpt
pub async fn create_document<C>(
&self,
parent_team: &Team,
content_type: C,
) -> Docwhere
C: Into<AnyContentType>,
pub async fn create_document_without_intro<C>(
&self,
doc_team: &Team,
content_type: C,
) -> Docwhere
C: Into<AnyContentType>,
pub async fn load_doc(&self, doc_id: DocID) -> Doc
Source§impl Tlpt
impl Tlpt
pub async fn create_team<I>(&self, parent_teams: I) -> (Team, MemberCredential)where
I: IntoIterator<Item = TeamID>,
pub async fn load_team(&self, team_id: &TeamID) -> Team
pub async fn load_team_with_credential_source( &self, team_id: &TeamID, credential_source: impl CredentialSource + 'static, ) -> Team
pub fn get_loaded_team(&self, team_id: &TeamID) -> Option<Team>
pub async fn join_team( &self, invitation_token: InvitationToken, ) -> Result<(Team, Invitation, InvitationPrivatePart), JoinTeamError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tlpt
impl !RefUnwindSafe for Tlpt
impl !Send for Tlpt
impl !Sync for Tlpt
impl Unpin for Tlpt
impl !UnwindSafe for Tlpt
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