pub struct DataNode<'a> {
pub _tab: Table<'a>,
}Fields§
§_tab: Table<'a>Implementations§
Source§impl<'a> DataNode<'a>
impl<'a> DataNode<'a>
pub const VT_NODE_ID: VOffsetT = 4
pub const VT_NAME: VOffsetT = 6
pub const VT_SOURCE: VOffsetT = 8
pub const VT_CACHE_STRATEGY: VOffsetT = 10
pub const VT_STALE_TIME: VOffsetT = 12
pub const VT_CACHE_TIME: VOffsetT = 14
pub const VT_CACHE_TAGS: VOffsetT = 16
pub const VT_AUTH_REQUIRED: VOffsetT = 18
pub const VT_LOADING_STATE_MACHINE: VOffsetT = 20
pub const VT_QUERY_PARAMS: VOffsetT = 22
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr, A>, args: &'args DataNodeArgs<'args>, ) -> WIPOffset<DataNode<'bldr>>
pub fn node_id(&self) -> &'a str
pub fn name(&self) -> Option<&'a str>
pub fn source(&self) -> DataSource<'a>
Sourcepub fn cache_strategy(&self) -> CacheStrategy
pub fn cache_strategy(&self) -> CacheStrategy
Cache behavior.
Sourcepub fn stale_time(&self) -> u32
pub fn stale_time(&self) -> u32
How long data is considered fresh (ms).
Sourcepub fn cache_time(&self) -> u32
pub fn cache_time(&self) -> u32
How long to keep unused data in cache (ms).
Tags for invalidation (ActionNode references these).
Sourcepub fn auth_required(&self) -> bool
pub fn auth_required(&self) -> bool
Whether this data requires authentication.
Sourcepub fn loading_state_machine(&self) -> Option<&'a str>
pub fn loading_state_machine(&self) -> Option<&'a str>
Reference to a StateMachine that tracks loading/error/success state.
Sourcepub fn query_params(&self) -> Option<Vector<'a, ForwardsUOffset<KeyValue<'a>>>>
pub fn query_params(&self) -> Option<Vector<'a, ForwardsUOffset<KeyValue<'a>>>>
Query parameters — filters, sort, pagination.
Trait Implementations§
Source§impl Verifiable for DataNode<'_>
impl Verifiable for DataNode<'_>
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for DataNode<'a>
impl<'a> StructuralPartialEq for DataNode<'a>
Auto Trait Implementations§
impl<'a> Freeze for DataNode<'a>
impl<'a> RefUnwindSafe for DataNode<'a>
impl<'a> Send for DataNode<'a>
impl<'a> Sync for DataNode<'a>
impl<'a> Unpin for DataNode<'a>
impl<'a> UnsafeUnpin for DataNode<'a>
impl<'a> UnwindSafe for DataNode<'a>
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