events: Fix documentation for a few functions
This commit is contained in:
parent
b183677ef5
commit
beded100ac
@ -70,7 +70,7 @@ impl FileEventContent {
|
||||
}
|
||||
|
||||
/// Creates a new non-encrypted `FileEventContent` with the given plain text fallback
|
||||
/// representation, url and file info.
|
||||
/// representation, url and name.
|
||||
pub fn plain_with_plain_text(
|
||||
plain_text: impl Into<String>,
|
||||
url: OwnedMxcUri,
|
||||
@ -87,7 +87,7 @@ impl FileEventContent {
|
||||
}
|
||||
|
||||
/// Creates a new encrypted `FileEventContent` with the given fallback representation, url,
|
||||
/// encryption info and file info.
|
||||
/// name and encryption info.
|
||||
pub fn encrypted(
|
||||
text: TextContentBlock,
|
||||
url: OwnedMxcUri,
|
||||
@ -105,7 +105,7 @@ impl FileEventContent {
|
||||
}
|
||||
|
||||
/// Creates a new encrypted `FileEventContent` with the given plain text fallback
|
||||
/// representation, url, encryption info and file info.
|
||||
/// representation, url, name and encryption info.
|
||||
pub fn encrypted_with_plain_text(
|
||||
plain_text: impl Into<String>,
|
||||
url: OwnedMxcUri,
|
||||
|
@ -31,8 +31,7 @@ impl AudioMessageEventContent {
|
||||
Self { body, source, info: None }
|
||||
}
|
||||
|
||||
/// Creates a new non-encrypted `AudioMessageEventContent` with the given body, url and
|
||||
/// optional extra info.
|
||||
/// Creates a new non-encrypted `AudioMessageEventContent` with the given bod and url.
|
||||
pub fn plain(body: String, url: OwnedMxcUri) -> Self {
|
||||
Self::new(body, MediaSource::Plain(url))
|
||||
}
|
||||
|
@ -35,8 +35,7 @@ impl FileMessageEventContent {
|
||||
Self { body, filename: None, source, info: None }
|
||||
}
|
||||
|
||||
/// Creates a new non-encrypted `FileMessageEventContent` with the given body, url and
|
||||
/// optional extra info.
|
||||
/// Creates a new non-encrypted `FileMessageEventContent` with the given body and url.
|
||||
pub fn plain(body: String, url: OwnedMxcUri) -> Self {
|
||||
Self::new(body, MediaSource::Plain(url))
|
||||
}
|
||||
|
@ -32,8 +32,7 @@ impl VideoMessageEventContent {
|
||||
Self { body, source, info: None }
|
||||
}
|
||||
|
||||
/// Creates a new non-encrypted `VideoMessageEventContent` with the given body, url and
|
||||
/// optional extra info.
|
||||
/// Creates a new non-encrypted `VideoMessageEventContent` with the given body and url.
|
||||
pub fn plain(body: String, url: OwnedMxcUri) -> Self {
|
||||
Self::new(body, MediaSource::Plain(url))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user