gstreamer-rs/gstreamer/src
François Laignel 5ab9c5a203 gst: deprecate maybe_field() setters in favor of field_if_some()
Some builder convenience setters where added to work with `Option`al values.
This is the case for the `Pad` builder setter `maybe_name()` which was
introduced as part of [this MR].

Then [more convenience setters] were discussed and [it was decided] to use
`field_if_some()` instead of `maybe_field()`. Existing `maybe_field()`s were
kept for backward compatibility. This commit marks them as deprecated,
referring to the matching `field_if_some()`.

[this MR]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1255
[more convenience setters]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/499
[it was decided]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/499#note_2364820

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1592>
2024-11-14 11:46:24 +01:00
..
auto gir: regenerate 2024-11-07 10:04:41 +01:00
format gst: Fix range in Percent::ppm doc 2024-09-18 17:49:05 +02:00
id_str gst: implement IdStr bindings and compatibility versions 2024-11-13 15:33:59 +01:00
subclass Remove unnecessary sealing of ImplExt traits and enforce type hierarchy more strictly 2024-10-20 17:48:45 +00:00
allocation_params.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
allocator.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
bin.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
buffer.rs all: fix userdata mutability for FnMut callbacks 2024-11-07 09:44:29 +01:00
buffer_cursor.rs Fix various new 1.79 clippy warnings 2024-06-14 08:08:27 +03:00
buffer_pool.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
buffer_serde.rs fix typos in comments 2023-04-07 17:09:48 +02:00
bufferlist.rs gst: BufferList::foreach{_mut} discard bool result 2024-11-07 10:03:54 +01:00
bufferlist_serde.rs Group and merge imports in all manual code 2023-01-04 13:25:17 +02:00
bus.rs all: fix userdata mutability for FnMut callbacks 2024-11-07 09:44:29 +01:00
bus_unix.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
bus_windows.rs Regenerate with latest GStreamer gir files 2024-10-20 17:48:45 +00:00
caps.rs gst: caps: update for IdStr 2024-11-13 15:34:00 +01:00
caps_features.rs gst: caps: update for IdStr 2024-11-13 15:34:00 +01:00
caps_features_serde.rs Update various APIs to use glib::GStr 2023-01-15 21:05:57 +02:00
caps_serde.rs Update various APIs to use glib::GStr 2023-01-15 21:05:57 +02:00
child_proxy.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
clock.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
context.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
control_binding.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
control_source.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
date_time.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
date_time_serde.rs Adapt to no longer re-exported traits 2024-02-03 10:48:37 +01:00
device_monitor.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
device_provider.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
device_provider_factory.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
element.rs gst: Element::foreach*_pad: return ControlFlow instead of bool in callback 2024-11-07 10:04:43 +01:00
element_factory.rs gstreamer: Use obj = x instead of obj: x in debug log macros 2024-07-06 14:08:03 +03:00
element_factory_type.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
enums.rs Fix various new 1.79 clippy warnings 2024-06-14 08:08:27 +03:00
error.rs Adapt to no longer re-exported traits 2024-02-03 10:48:37 +01:00
event.rs gstreamer: Add some setters for Event 2024-09-12 13:02:32 +00:00
flag_serde.rs gst: fix serde test for ObjectFlags::all() 2024-11-13 13:35:50 +01:00
functions.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
ghost_pad.rs gst: deprecate maybe_field() setters in favor of field_if_some() 2024-11-14 11:46:24 +01:00
gobject.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
gtype.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
iterator.rs iterator: Add a few more constructors for convenience 2024-10-21 17:13:38 +00:00
lib.rs gst: implement IdStr bindings and compatibility versions 2024-11-13 15:33:59 +01:00
log.rs Remove once_cell dependency 2024-10-21 17:53:15 +00:00
macos.rs genrate gir without link attribute 2024-09-19 11:46:18 +00:00
memory.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
memory_wrapped.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
message.rs gstreamer: Add some setters for Message 2024-09-12 13:02:32 +00:00
meta.rs gstreamer: meta: Pass an empty tag array instead of NULL to gst_meta_register_custom() 2024-07-18 13:04:42 +03:00
miniobject.rs Ignore a new 1.80 clippy warning 2024-08-13 15:41:44 +03:00
object.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
pad.rs gst: deprecate maybe_field() setters in favor of field_if_some() 2024-11-14 11:46:24 +01:00
pad_template.rs Add new setters for collection Value setters in Builders 2024-06-14 17:00:36 +02:00
param_spec.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
parse.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
parse_context.rs gstreamer: Unconditionally use gst_parse_context_copy() 2024-07-06 11:21:31 +00:00
pipeline.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
plugin.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
plugin_feature.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
promise.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
proxy_pad.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
query.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
rank.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
registry.rs all: fix userdata mutability for FnMut callbacks 2024-11-07 09:44:29 +01:00
sample.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
sample_serde.rs Group and merge imports in all manual code 2023-01-04 13:25:17 +02:00
segment.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
segment_serde.rs Fix various new 1.79 clippy warnings 2024-06-14 08:08:27 +03:00
serde_macros.rs Switch from once_cell to std::sync::OnceLock where it makes sense 2024-01-31 14:59:54 +02:00
slice.rs gstreamer: Improve support for dumping memories and add same functionality to byte slices 2023-12-11 16:05:34 +00:00
static_caps.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
static_pad_template.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
stream.rs Group and merge imports in all manual code 2023-01-04 13:25:17 +02:00
stream_collection.rs Add new setters for collection Value setters in Builders 2024-06-14 17:00:36 +02:00
structure.rs gst: structure: deprecate Quarks and use IdStr 2024-11-13 15:34:00 +01:00
structure_serde.rs gst: structure: deprecate Quarks and use IdStr 2024-11-13 15:34:00 +01:00
tag_setter.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
tags.rs gst: tags: remove Quark 2024-11-13 15:34:00 +01:00
tags_serde.rs Fix various new 1.79 clippy warnings 2024-06-14 08:08:27 +03:00
task.rs Add new setters for collection Value setters in Builders 2024-06-14 17:00:36 +02:00
task_pool.rs Remove unnecessary trait sealing 2024-10-20 17:48:45 +00:00
toc.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
toc_serde.rs Group and merge imports in all manual code 2023-01-04 13:25:17 +02:00
tracer.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
tracer_factory.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
typefind.rs Fix various new 1.79 clippy warnings 2024-06-14 08:08:27 +03:00
typefind_factory.rs Adapt to no longer renamed ffi crates 2024-06-02 11:20:55 +02:00
utils.rs Fix new 1.81 clippy warnings 2024-09-05 21:52:35 +03:00
value.rs gst: structure: deprecate Quarks and use IdStr 2024-11-13 15:34:00 +01:00
value_serde.rs Remove once_cell dependency 2024-10-21 17:53:15 +00:00