Skip to content

Commit 67ce782

Browse files
committed
Invert documentation
1 parent b6687f7 commit 67ce782

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

crates/bitwarden-exporters/src/client_exporter.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ impl<'a> ClientExporters<'a> {
3333
export_organization_vault(collections, ciphers, format)
3434
}
3535

36-
/// See [export_cxf] for more documentation.
36+
/// Credential Exchange Format (CXF)
37+
///
38+
/// *Warning:* Expect this API to be unstable, and it will change in the future.
39+
///
40+
/// For use with Apple using [ASCredentialExportManager](https://developer.apple.com/documentation/authenticationservices/ascredentialexportmanager).
41+
/// Ideally the input should be immediately serialized from [ASImportableAccount](https://developer.apple.com/documentation/authenticationservices/asimportableaccount).
3742
pub fn export_cxf(
3843
&self,
3944
account: Account,
@@ -42,7 +47,12 @@ impl<'a> ClientExporters<'a> {
4247
export_cxf(self.client, account, ciphers)
4348
}
4449

45-
/// See [import_cxf] for more documentation.
50+
/// Credential Exchange Format (CXF)
51+
///
52+
/// *Warning:* Expect this API to be unstable, and it will change in the future.
53+
///
54+
/// For use with Apple using [ASCredentialExportManager](https://developer.apple.com/documentation/authenticationservices/ascredentialexportmanager).
55+
/// Ideally the input should be immediately serialized from [ASImportableAccount](https://developer.apple.com/documentation/authenticationservices/asimportableaccount).
4656
pub fn import_cxf(&self, payload: String) -> Result<Vec<Cipher>, ExportError> {
4757
import_cxf(self.client, payload)
4858
}

crates/bitwarden-exporters/src/export.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,7 @@ pub(crate) fn export_organization_vault(
4949
todo!();
5050
}
5151

52-
/// Credential Exchange Format (CXF)
53-
///
54-
/// *Warning:* Expect this API to be unstable, and it will change in the future.
55-
///
56-
/// For use with Apple using [ASCredentialExportManager](https://developer.apple.com/documentation/authenticationservices/ascredentialexportmanager).
57-
/// Ideally the input should be immediately serialized from [ASImportableAccount](https://developer.apple.com/documentation/authenticationservices/asimportableaccount).
52+
/// See [crate::ClientExporters::export_cxf] for more documentation.
5853
pub(crate) fn export_cxf(
5954
client: &Client,
6055
account: Account,
@@ -117,12 +112,7 @@ fn encrypt_import(
117112
Ok(new_cipher)
118113
}
119114

120-
/// Credential Exchange Format (CXF)
121-
///
122-
/// *Warning:* Expect this API to be unstable, and it will change in the future.
123-
///
124-
/// For use with Apple using [ASCredentialExportManager](https://developer.apple.com/documentation/authenticationservices/ascredentialexportmanager).
125-
/// Ideally the input should be immediately serialized from [ASImportableAccount](https://developer.apple.com/documentation/authenticationservices/asimportableaccount).
115+
/// See [crate::ClientExporters::import_cxf] for more documentation.
126116
pub(crate) fn import_cxf(client: &Client, payload: String) -> Result<Vec<Cipher>, ExportError> {
127117
let enc = client.internal.get_encryption_settings()?;
128118
let key = enc.get_key(&None)?;

0 commit comments

Comments
 (0)