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