pub struct UpdatePeerHistoryTtl {
pub peer: Peer,
pub ttl_period: Option<i32>,
}Expand description
Generated from:
updatePeerHistoryTTL#bb9bb9a5 flags:# peer:Peer ttl_period:flags.0?int = UpdateFields§
§peer: Peer§ttl_period: Option<i32>Trait Implementations§
Source§impl Clone for UpdatePeerHistoryTtl
impl Clone for UpdatePeerHistoryTtl
Source§fn clone(&self) -> UpdatePeerHistoryTtl
fn clone(&self) -> UpdatePeerHistoryTtl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdatePeerHistoryTtl
impl Debug for UpdatePeerHistoryTtl
Source§impl Deserializable for UpdatePeerHistoryTtl
impl Deserializable for UpdatePeerHistoryTtl
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<UpdatePeerHistoryTtl> for Update
impl From<UpdatePeerHistoryTtl> for Update
Source§fn from(x: UpdatePeerHistoryTtl) -> Self
fn from(x: UpdatePeerHistoryTtl) -> Self
Converts to this type from the input type.
Source§impl Identifiable for UpdatePeerHistoryTtl
impl Identifiable for UpdatePeerHistoryTtl
Source§const CONSTRUCTOR_ID: u32 = 0xbb9bb9a5
const CONSTRUCTOR_ID: u32 = 0xbb9bb9a5
The constructor ID as specified in the TL schema.
Source§impl PartialEq for UpdatePeerHistoryTtl
impl PartialEq for UpdatePeerHistoryTtl
Source§impl Serializable for UpdatePeerHistoryTtl
impl Serializable for UpdatePeerHistoryTtl
Source§impl TryFrom<Update> for UpdatePeerHistoryTtl
impl TryFrom<Update> for UpdatePeerHistoryTtl
impl StructuralPartialEq for UpdatePeerHistoryTtl
Auto Trait Implementations§
impl Freeze for UpdatePeerHistoryTtl
impl RefUnwindSafe for UpdatePeerHistoryTtl
impl Send for UpdatePeerHistoryTtl
impl Sync for UpdatePeerHistoryTtl
impl Unpin for UpdatePeerHistoryTtl
impl UnsafeUnpin for UpdatePeerHistoryTtl
impl UnwindSafe for UpdatePeerHistoryTtl
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